Changeset 12774 for branches/PerformanceComparison/HeuristicLab.Analysis/3.3/QualityAnalysis/QualityPerClockAnalyzer.cs
- Timestamp:
- 07/17/15 12:34:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis/3.3/QualityAnalysis/QualityPerClockAnalyzer.cs
r12771 r12774 21 21 22 22 using System; 23 using System.Linq; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 74 75 75 76 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); 77 78 var bestQuality = BestQualityParameter.ActualValue.Value; 78 79 79 80 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)); 81 84 82 85 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.