Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/15 15:31:54 (9 years ago)
Author:
abeham
Message:

#2431: worked on RLD analysis

  • started implementation of IRRRun
  • renamed view from ECDF to RLD
  • reverted algorithms (execution time)
  • changed per clock analyzer
File:
1 edited

Legend:

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

    r12774 r12803  
    4242    }
    4343
    44     public IResultParameter<TimeSpanValue> ExecutionTimeParameter {
    45       get { return (IResultParameter<TimeSpanValue>)Parameters["Execution Time"]; }
     44    public ILookupParameter<DateTimeValue> LastUpdateTimeParameter {
     45      get { return (ILookupParameter<DateTimeValue>)Parameters["LastUpdateTime"]; }
    4646    }
    4747
     
    5656      : base() {
    5757      Parameters.Add(new LookupParameter<DoubleValue>("BestQuality", "The quality value that should be compared."));
    58       Parameters.Add(new ResultParameter<TimeSpanValue>("Execution Time", "The execution time."));
     58      Parameters.Add(new LookupParameter<DateTimeValue>("LastUpdateTime", "The time the analyzer was last run."));
    5959      Parameters.Add(new ResultParameter<IndexedDataTable<double>>("QualityPerClock", "Data table containing the first hitting graph with elapsed wall clock time (in seconds) as the x-axis."));
    6060      QualityPerClockParameter.DefaultValue = new IndexedDataTable<double>("Quality per Clock") {
     
    7575
    7676    public override IOperation Apply() {
    77       var executionTime = Math.Max(ExecutionTimeParameter.ResultValue.Value.TotalSeconds, 0.2);
     77      var lastUpdateTime = LastUpdateTimeParameter.ActualValue;
     78      if (lastUpdateTime == null) {
     79        lastUpdateTime = new DateTimeValue(DateTime.UtcNow.AddMilliseconds(-1));
     80        LastUpdateTimeParameter.ActualValue = lastUpdateTime;
     81      }
     82      var now = DateTime.UtcNow;
     83
    7884      var bestQuality = BestQualityParameter.ActualValue.Value;
    7985
     
    8187      var values = dataTable.Rows["First-hit Graph"].Values;
    8288      if (values.Count == 0 || values.Last().Item2 != bestQuality)
    83         dataTable.Rows["First-hit Graph"].Values.Add(Tuple.Create(executionTime, bestQuality));
     89        dataTable.Rows["First-hit Graph"].Values.Add(Tuple.Create((now - lastUpdateTime.Value).TotalSeconds, bestQuality));
    8490
     91      lastUpdateTime.Value = now;
    8592      return base.Apply();
    8693    }
Note: See TracChangeset for help on using the changeset viewer.