public MetricCriteria(CaDETMetric metric, OperationEnum operation, double threshold) { _metric = metric; _operation = operation; _threshold = threshold; }
private double FindTopXMetricValuesInProject(List <CaDETClass> caDetClassDtoList, CaDETMetric metric, int indexOfMetricValue) { List <double> metricValues = caDetClassDtoList.Select(c => c.Metrics[metric]).ToList(); metricValues.Sort(); return(metricValues[indexOfMetricValue]); }