Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/10 13:24:11 (15 years ago)
Author:
swagner
Message:

Implemented first version of best and best known quality handling (#920)

Location:
trunk/sources/HeuristicLab.Analysis/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/BestQualityMemorizer.cs

    r3048 r3080  
    5555      DoubleValue best = BestQualityParameter.ActualValue;
    5656      double max = (best != null) ? (best.Value) : ((maximization) ? (double.MinValue) : (double.MaxValue));
    57      
     57
    5858      foreach (DoubleValue quality in qualities)
    5959        if (IsBetter(maximization, quality.Value, max)) max = quality.Value;
  • trunk/sources/HeuristicLab.Analysis/3.3/DataTableValuesCollector.cs

    r3048 r3080  
    5353      foreach (IParameter param in CollectedValues) {
    5454        DoubleValue data = param.ActualValue as DoubleValue;
    55         if (data == null) throw new InvalidOperationException("Only double data values can be collected by a DataTableValuesCollector.");
     55        if (data == null) data = new DoubleValue(double.NaN);
    5656
    5757        DataRow row;
Note: See TracChangeset for help on using the changeset viewer.