Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/08 10:19:53 (17 years ago)
Author:
gkronber
Message:
  • changed signature of interface method Evaluate()
  • fixed evaluation of variables and constants
  • removed variable-cache fields and properties in variable and constant since they are not needed anymore. and removed the obsolete overrides of Populate() and Clone()

(ticket #112)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FunctionsAndStructIdRefactoring/HeuristicLab.Functions/Or.cs

    r142 r147  
    4141    }
    4242
    43     public override double Evaluate(Dataset dataset, int sampleIndex, IList<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) {
    4545        double result = Math.Round(subTree.Evaluate(dataset, sampleIndex));
    4646        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.