Changeset 9392 for branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Rule.cs
- Timestamp:
- 04/23/13 13:31:29 (11 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3
- Property svn:ignore
-
old new 1 1 *.user 2 2 Plugin.cs 3 obj
-
- Property svn:ignore
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Rule.cs
r9352 r9392 88 88 } 89 89 90 public bool MatchInput( DecisionListInput target) {90 public bool MatchInput(IGAssistInput target) { 91 91 foreach (var variable in variables) { 92 if (!target. InputDictionary.ContainsKey(variable.Key)) { throw new ArgumentException("Input doesn't contain variable"); }93 if (!variable.Value.Match(target. InputDictionary[variable.Key])) { return false; }92 if (!target.VariableNames.Contains(variable.Key)) { throw new ArgumentException("Input doesn't contain variable"); } 93 if (!variable.Value.Match(target.GetVariableValue(variable.Key))) { return false; } 94 94 } 95 95 return true;
Note: See TracChangeset
for help on using the changeset viewer.