Changeset 8867 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/CrossoverPerformanceAnalyzer.cs
- Timestamp:
- 11/04/12 23:11:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/CrossoverPerformanceAnalyzer.cs
r8866 r8867 35 35 [Item("CrossoverPerformanceAnalyzer", "An operator that analyzes the performance of crossovers.")] 36 36 [StorableClass] 37 public class CrossoverPerformanceAnalyzer : InitializableOperator {37 public class CrossoverPerformanceAnalyzer : InitializableOperator, IStatefulItem { 38 38 private const string ResultsParameterName = "Results"; 39 39 private const string GenerationsParameterName = "Generations"; … … 226 226 } 227 227 228 worseQualityPoint = new Point2D<double>(cnt, worseQuality - qualityChild);229 betterQualityPoint = new Point2D<double>(cnt++, betterQuality - qualityChild);228 worseQualityPoint = new Point2D<double>(cnt, Math.Abs(worseQuality - qualityChild)); 229 betterQualityPoint = new Point2D<double>(cnt++, Math.Abs(betterQuality - qualityChild)); 230 230 231 231 if (GenerationsParameter.ActualValue.Value == lastGeneration) { … … 280 280 equalParents = 0; 281 281 } 282 283 public override void ClearState() { 284 betterParentCrossoverPerformancePlot.CleanUp(); 285 worseParentCrossoverPerformancePlot.CleanUp(); 286 childDiversityToWorseParentHelper.CleanUp(); 287 childDiversityToBetterParentHelper.CleanUp(); 288 parentDiversityHelper.CleanUp(); 289 parentQualityHelper.CleanUp(); 290 } 282 291 } 283 292 }
Note: See TracChangeset
for help on using the changeset viewer.