Changeset 2537
- Timestamp:
- 12/02/09 17:17:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Predictor.cs
r2401 r2537 32 32 namespace HeuristicLab.GP.StructureIdentification { 33 33 public class Predictor : PredictorBase { 34 public Predictor() : base() { } // for persistence 35 public Predictor(ITreeEvaluator evaluator, IGeneticProgrammingModel tree, double lowerPredictionLimit, double upperPredictionLimit) 36 : base(lowerPredictionLimit, upperPredictionLimit) { 37 this.treeEvaluator = evaluator; 38 this.functionTree = tree; 39 } 40 34 41 private ITreeEvaluator treeEvaluator; 42 public ITreeEvaluator TreeEvaluator { 43 get { return (ITreeEvaluator) this.treeEvaluator.Clone(); } 44 } 35 45 36 46 private IGeneticProgrammingModel functionTree; … … 38 48 get { return functionTree; } 39 49 set { this.functionTree = value; } 40 }41 42 public Predictor() : base() { } // for persistence43 public Predictor(ITreeEvaluator evaluator, IGeneticProgrammingModel tree, double lowerPredictionLimit, double upperPredictionLimit)44 : base(lowerPredictionLimit, upperPredictionLimit) {45 this.treeEvaluator = evaluator;46 this.functionTree = tree;47 50 } 48 51
Note: See TracChangeset
for help on using the changeset viewer.