/// <summary> /// /// </summary> /// <param name="type">OWA,OWG</param> /// <param name="weights">required</param> /// <returns></returns> public static IAggregation CreateWeightAggregation(AggregationType type, List <decimal> weights) { IAggregation aggregation = null; switch (type) { case AggregationType.OWA: { aggregation = new OWA(weights); break; } case AggregationType.OWG: { aggregation = new OWG(weights); break; } default: { throw new NotImplementedException("Not supported yet."); } } return(aggregation); }
/// <summary> /// /// </summary> /// <param name="type">OWA,OWG</param> /// <param name="weights">required</param> /// <returns></returns> public static IAggregation CreateWeightAggregation(AggregationType type, List<decimal> weights) { IAggregation aggregation = null; switch (type) { case AggregationType.OWA: { aggregation = new OWA(weights); break; } case AggregationType.OWG: { aggregation = new OWG(weights); break; } default: { throw new NotImplementedException("Not supported yet."); } } return aggregation; }