Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/19 05:21:34 (6 years ago)
Author:
swagner
Message:

#2989: Moving Peaks Benchmark

  • added calculation of offline error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2989_MovingPeaksBenchmark/HeuristicLab.Problems.MovingPeaksBenchmark/3.3/Analyzers/BestMovingPeaksBenchmarkSolutionAnalyzer.cs

    r16609 r16611  
    136136        DataTable table = new DataTable("Distance to Optimum");
    137137        table.Rows.Add(new DataRow("Distance to Optimum"));
     138        table.Rows["Distance to Optimum"].VisualProperties.StartIndexZero = true;
    138139        distanceTable = new Result("Distance to Optimum", table);
    139140        results.Add(distanceTable);
     
    141142      (distanceTable.Value as DataTable).Rows["Distance to Optimum"].Values.Add(distanceToOptimum);
    142143
     144      IResult offlineErrorTable;
     145      if (!results.TryGetValue("Offline Error Chart", out offlineErrorTable)) {
     146        DataTable table = new DataTable("Offline Error");
     147        table.Rows.Add(new DataRow("Offline Error"));
     148        table.Rows["Offline Error"].VisualProperties.StartIndexZero = true;
     149        offlineErrorTable = new Result("Offline Error Chart", table);
     150        results.Add(offlineErrorTable);
     151      }
     152      (offlineErrorTable.Value as DataTable).Rows["Offline Error"].Values.Add((results["Offline Error"].Value as DoubleValue).Value);
     153
    143154      return base.Apply();
    144155    }
Note: See TracChangeset for help on using the changeset viewer.