Changeset 13761 for trunk/sources
- Timestamp:
- 04/14/16 13:56:25 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r13760 r13761 115 115 foreach (var v in variableNames) { 116 116 if (VariableHasType<double>(v)) { 117 values.Add( ((List<double>)variableValues[v]).ToList());117 values.Add(new List<double>((List<double>)variableValues[v])); 118 118 } else if (VariableHasType<string>(v)) { 119 values.Add( ((List<string>)variableValues[v]).ToList());119 values.Add(new List<string>((List<string>)variableValues[v])); 120 120 } else if (VariableHasType<DateTime>(v)) { 121 values.Add( ((List<DateTime>)variableValues[v]).ToList());121 values.Add(new List<DateTime>((List<DateTime>)variableValues[v])); 122 122 } else { 123 123 throw new ArgumentException("Unknown variable type."); -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/ModifiableDataset.cs
r13760 r13761 75 75 } 76 76 77 public void Replace Column<T>(string variableName, List<T>values) {77 public void ReplaceVariable(string variableName, IList values) { 78 78 if (!variableValues.ContainsKey(variableName)) 79 79 throw new ArgumentException(string.Format("Variable {0} is not present in the dataset."), variableName);
Note: See TracChangeset
for help on using the changeset viewer.