Changeset 11185 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
- Timestamp:
- 07/14/14 10:28:20 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering
- Property svn:mergeinfo changed
/stable merged: 11170,11173,11175 /trunk/sources merged: 11153,11156,11161,11163,11171-11172,11174,11176
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/stable/HeuristicLab.Problems.DataAnalysis merged: 11170,11173 /trunk/sources/HeuristicLab.Problems.DataAnalysis (added) merged: 11156,11171,11174
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
r11114 r11185 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 126 126 } 127 127 128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<ITransformation> transformations ) {128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<ITransformation> transformations = null) { 129 129 if (dataset == null) throw new ArgumentNullException("The dataset must not be null."); 130 130 if (allowedInputVariables == null) throw new ArgumentNullException("The allowedInputVariables must not be null."); … … 132 132 if (allowedInputVariables.Except(dataset.DoubleVariables).Any()) 133 133 throw new ArgumentException("All allowed input variables must be present in the dataset and of type double."); 134 135 if (transformations == null) throw new ArgumentNullException("The transformations must not be null.");136 134 137 135 var inputVariables = new CheckedItemList<StringValue>(dataset.DoubleVariables.Select(x => new StringValue(x))); … … 144 142 int testPartitionEnd = dataset.Rows; 145 143 146 var transformationsList = new ItemList<ITransformation>(transformations );144 var transformationsList = new ItemList<ITransformation>(transformations ?? Enumerable.Empty<ITransformation>()); 147 145 148 146 Parameters.Add(new FixedValueParameter<Dataset>(DatasetParameterName, "", dataset));
Note: See TracChangeset
for help on using the changeset viewer.