Changeset 15343 for branches/EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Operators/SampleCollector.cs
- Timestamp:
- 08/29/17 11:28:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Operators/SampleCollector.cs
r15064 r15343 30 30 31 31 namespace HeuristicLab.Algorithms.EGO { 32 /// <summary>33 /// A base class for operators that manipulate real-valued vectors.34 /// </summary>35 32 [Item("SampleCollector", "Collects RealVectors into a modifiablbe dataset")] 36 33 [StorableClass] … … 59 56 var quality = QualityParameter.ActualValue.Value; 60 57 var data = DatasetParameter.ActualValue; 61 62 58 if (data.Columns != vector.Length + 1) { 63 59 if (data.Columns != 0 || data.Rows != 0) throw new OperatorExecutionException(this, "dataset columns do not match samplesize+1"); … … 70 66 } 71 67 72 73 68 private static void AddRow(ModifiableDataset data, RealVector vector, double quality) { 74 69 var row = new object[vector.Length + 1]; … … 78 73 data.AddRow(row); 79 74 } 80 81 82 83 75 } 84 76 }
Note: See TracChangeset
for help on using the changeset viewer.