Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/12 01:15:10 (12 years ago)
Author:
ascheibe
Message:

#1886 worked on crossover performance analyzer

File:
1 edited

Legend:

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

    r8336 r8337  
    7474
    7575    ScatterPlot plot;
     76    DataRow dtRow;
    7677    int cnt = 0;
    7778
     
    117118        Results.Add(new Result("Scatter Plot History", new ScatterPlotHistory()));
    118119        cnt = 0;
     120
     121        DataTable dt = new DataTable("Average Crossover Performance");
     122        dtRow = new DataRow("Average Crossover Performance per Generation");
     123        dt.Rows.Add(dtRow);
     124        Results.Add(new Result("Average Crossover Performance", dt));
    119125      }
    120126
    121127      if (!plot.Rows.ContainsKey(curGenStr)) {
    122128        if (GenerationsParameter.ActualValue.Value != 0) {
     129          double avg = plot.Rows[(GenerationsParameter.ActualValue.Value - 1).ToString()].Points.Average(x => x.Y);
     130          dtRow.Values.Add(avg);
     131
    123132          ((ScatterPlotHistory)Results["Scatter Plot History"].Value).Add(plot);
    124133          InitializePlot();
Note: See TracChangeset for help on using the changeset viewer.