Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/18/12 09:45:42 (10 years ago)
Author:
ascheibe
Message:

#1886 improved crossover analyzer and added duplicate parent counting

File:
1 edited

Legend:

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

    r8498 r8499  
    134134          double avg = qualityPoints.Average();
    135135          avgDataTableHelper.AddPoint(avg);
    136           cnt = 0;
    137           lastGeneration = GenerationsParameter.ActualValue.Value;
    138           qualityPoints.Clear();
     136          Reset();
    139137        }
     138      } else {
     139        Reset();
    140140      }
    141141
    142142      return base.Apply();
    143143    }
     144
     145    private void Reset() {
     146      cnt = 0;
     147      lastGeneration = GenerationsParameter.ActualValue.Value;
     148      qualityPoints.Clear();
     149    }
    144150  }
    145151}
Note: See TracChangeset for help on using the changeset viewer.