예제 #1
0
 public CandidateRecord(double can_weight, Agent agent, int awa_window_size = 1)
 {
     this.MyAggFuncs        = new AggregationFunctions();
     this.BeliefDim         = -1;
     this.RequireOpinionNum = this.CalcRequireNum(can_weight, agent);
     this.CanWeight         = Math.Round(can_weight, 4);
     this.AwaRates          = new Queue <double>();
     this.AwaWindowSize     = awa_window_size;
 }
예제 #2
0
 public CandidateRecord(int belief_dim, int requre_num, Agent agent, int awa_window_size = 1)
 {
     this.MyAggFuncs        = new AggregationFunctions();
     this.BeliefDim         = belief_dim;
     this.RequireOpinionNum = requre_num;
     this.CanWeight         = Math.Round(this.CalcCanWeight(belief_dim, requre_num, agent), 4);
     this.AwaRates          = new Queue <double>();
     this.AwaWindowSize     = awa_window_size;
 }
예제 #3
0
 public Aggregate(AggregationFunctions groupingType, string fieldName)
 {
         this.Function = groupingType;
         this.FieldName = fieldName;
 }
예제 #4
0
 public Aggregate(AggregationFunctions groupingType, string fieldName)
 {
     this.Function  = groupingType;
     this.FieldName = fieldName;
 }