Changeset 2924 for trunk/sources/HeuristicLab.Analysis
- Timestamp:
- 03/04/10 04:52:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/BestAverageWorstQualityCalculator.cs
r2891 r2924 76 76 max = temp; 77 77 } 78 BestQualityParameter.ActualValue = new DoubleData(max); 79 AverageQualityParameter.ActualValue = new DoubleData(sum / qualities.Length); 80 WorstQualityParameter.ActualValue = new DoubleData(min); 78 79 DoubleData best = BestQualityParameter.ActualValue; 80 if (best == null) BestQualityParameter.ActualValue = new DoubleData(max); 81 else best.Value = max; 82 DoubleData average = AverageQualityParameter.ActualValue; 83 if (average == null) AverageQualityParameter.ActualValue = new DoubleData(sum / qualities.Length); 84 else average.Value = sum / qualities.Length; 85 DoubleData worst = WorstQualityParameter.ActualValue; 86 if (worst == null) WorstQualityParameter.ActualValue = new DoubleData(min); 87 else worst.Value = min; 81 88 } 82 89 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.