- Timestamp:
- 01/02/10 18:10:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/BaseClasses/TreeEvaluatorBase.cs
r2364 r2578 60 60 } 61 61 62 public void PrepareForEvaluation(Dataset dataset, IFunctionTree functionTree) { 62 [Obsolete] 63 public virtual void PrepareForEvaluation(Dataset dataset, IFunctionTree functionTree) { 63 64 this.dataset = dataset; 64 65 codeArr = new Instr[functionTree.GetSize()]; … … 94 95 } 95 96 96 public double Evaluate(int sampleIndex) { 97 [Obsolete] 98 public virtual double Evaluate(int sampleIndex) { 97 99 PC = 0; 98 100 this.sampleIndex = sampleIndex; … … 101 103 if (double.IsNaN(estimated)) estimated = UpperEvaluationLimit; 102 104 return estimated; 105 } 106 107 public virtual IEnumerable<double> Evaluate(Dataset dataset, IFunctionTree tree, IEnumerable<int> rows) { 108 PrepareForEvaluation(dataset, tree); 109 foreach (int row in rows) 110 yield return Evaluate(row); 103 111 } 104 112
Note: See TracChangeset
for help on using the changeset viewer.