Free cookie consent management tool by TermsFeed Policy Generator

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

#2431: minor improvements

Location:
branches/PerformanceComparison/HeuristicLab.Analysis/3.3/QualityAnalysis
Files:
2 edited

Legend:

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

    r12771 r12774  
    2121
    2222using System;
     23using System.Linq;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    7475
    7576    public override IOperation Apply() {
    76       var executionTime = Math.Max(ExecutionTimeParameter.ResultValue.Value.TotalSeconds, 0.001);
     77      var executionTime = Math.Max(ExecutionTimeParameter.ResultValue.Value.TotalSeconds, 0.2);
    7778      var bestQuality = BestQualityParameter.ActualValue.Value;
    7879
    7980      var dataTable = QualityPerClockParameter.ResultValue;
    80       dataTable.Rows["First-hit Graph"].Values.Add(Tuple.Create(executionTime, bestQuality));
     81      var values = dataTable.Rows["First-hit Graph"].Values;
     82      if (values.Count == 0 || values.Last().Item2 != bestQuality)
     83        dataTable.Rows["First-hit Graph"].Values.Add(Tuple.Create(executionTime, bestQuality));
    8184
    8285      return base.Apply();
  • 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.