Ignore:
Timestamp:
07/17/15 12:34:45 (6 years ago)
Author:
abeham
Message:

#2431: minor improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Analysis/3.3/QualityAnalysis/QualityPerEvaluationsAnalyzer.cs

    r12771 r12774  
    2121
    2222using System;
     23using System.Linq;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    7677
    7778      var dataTable = QualityPerEvaluationsParameter.ResultValue;
    78       dataTable.Rows["First-hit Graph"].Values.Add(Tuple.Create((double)evaluations, bestQuality));
     79      var values = dataTable.Rows["First-hit Graph"].Values;
     80      if (values.Count == 0 || values.Last().Item2 != bestQuality)
     81        values.Add(Tuple.Create((double)evaluations, bestQuality));
    7982
    8083      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.