- Timestamp:
- 07/17/15 12:34:45 (9 years ago)
- 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 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(); -
branches/PerformanceComparison/HeuristicLab.Analysis/3.3/QualityAnalysis/QualityPerEvaluationsAnalyzer.cs
r12771 r12774 21 21 22 22 using System; 23 using System.Linq; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 76 77 77 78 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)); 79 82 80 83 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.