- Timestamp:
- 04/22/08 10:19:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FunctionsAndStructIdRefactoring/HeuristicLab.Functions/Or.cs
r142 r147 41 41 } 42 42 43 public override double Evaluate(Dataset dataset, int sampleIndex, I List<IFunctionTree> subTrees) {44 foreach(IFunctionTree subTree in subTrees) {43 public override double Evaluate(Dataset dataset, int sampleIndex, IFunctionTree tree) { 44 foreach(IFunctionTree subTree in tree.SubTrees) { 45 45 double result = Math.Round(subTree.Evaluate(dataset, sampleIndex)); 46 46 if(result == 1.0) return 1.0; // sub-tree evaluates to 1.0 (true) return 1.0
Note: See TracChangeset
for help on using the changeset viewer.