Changeset 9392 for branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification
- Timestamp:
- 04/23/13 13:31:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification/3.3/VariableVectorClassificationProblemData.cs
r9352 r9392 89 89 } else if (variableValues is List<double>) { 90 90 var doubleValues = (variableValues as List<double>).Distinct(); 91 if (doubleValues.All(x => x % 1 == 0 )) {91 if (doubleValues.All(x => x % 1 == 0 || Double.IsNaN(x))) { 92 92 // ToList call is necessary, because otherwise it wouldn't be possible to serialize it 93 93 variable = new IntVariable(variableName, doubleValues.Select(x => Convert.ToInt32(x)).ToList());
Note: See TracChangeset
for help on using the changeset viewer.