Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/04/12 23:11:01 (11 years ago)
Author:
ascheibe
Message:

#1886 improved mutation analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/CrossoverPerformanceAnalyzer.cs

    r8866 r8867  
    3535  [Item("CrossoverPerformanceAnalyzer", "An operator that analyzes the performance of crossovers.")]
    3636  [StorableClass]
    37   public class CrossoverPerformanceAnalyzer : InitializableOperator {
     37  public class CrossoverPerformanceAnalyzer : InitializableOperator, IStatefulItem {
    3838    private const string ResultsParameterName = "Results";
    3939    private const string GenerationsParameterName = "Generations";
     
    226226      }
    227227
    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));
    230230
    231231      if (GenerationsParameter.ActualValue.Value == lastGeneration) {
     
    280280      equalParents = 0;
    281281    }
     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    }
    282291  }
    283292}
Note: See TracChangeset for help on using the changeset viewer.