Changeset 9605 for branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Variable/IntVariable.cs
- Timestamp:
- 06/11/13 13:32:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Variable/IntVariable.cs
r9334 r9605 68 68 return attributes[possibleFeatures.IndexOf(input)]; 69 69 } 70 71 public override void SetToMatch(string variableValue) { 72 var value = int.Parse(variableValue); 73 if (!possibleFeatures.Contains(value)) throw new ArgumentException("variableValue " + variableValue + " is not a possible value of variable " + variableName); 74 75 attributes[possibleFeatures.IndexOf(value)] = true; 76 } 70 77 } 71 78 }
Note: See TracChangeset
for help on using the changeset viewer.