Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/29/17 11:28:16 (7 years ago)
Author:
bwerth
Message:

#2745 added discretized EGO-version for use with IntegerVectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Operators/SampleCollector.cs

    r15064 r15343  
    3030
    3131namespace HeuristicLab.Algorithms.EGO {
    32   /// <summary>
    33   /// A base class for operators that manipulate real-valued vectors.
    34   /// </summary>
    3532  [Item("SampleCollector", "Collects RealVectors into a modifiablbe dataset")]
    3633  [StorableClass]
     
    5956      var quality = QualityParameter.ActualValue.Value;
    6057      var data = DatasetParameter.ActualValue;
    61 
    6258      if (data.Columns != vector.Length + 1) {
    6359        if (data.Columns != 0 || data.Rows != 0) throw new OperatorExecutionException(this, "dataset columns do not match samplesize+1");
     
    7066    }
    7167
    72 
    7368    private static void AddRow(ModifiableDataset data, RealVector vector, double quality) {
    7469      var row = new object[vector.Length + 1];
     
    7873      data.AddRow(row);
    7974    }
    80 
    81 
    82 
    8375  }
    8476}
Note: See TracChangeset for help on using the changeset viewer.