示例#1
0
 public MetricCriteria(CaDETMetric metric, OperationEnum operation, double threshold)
 {
     _metric    = metric;
     _operation = operation;
     _threshold = threshold;
 }
示例#2
0
        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]);
        }