- Timestamp:
- 01/29/10 15:22:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Predictor.cs
r2619 r2722 52 52 53 53 public override IEnumerable<double> Predict(Dataset input, int start, int end) { 54 if (input == null) throw new ArgumentNullException(); 55 if (start < 0 || end <= start) throw new ArgumentException("start must be larger than zero and strictly smaller than end"); 56 if (end > input.Rows) throw new ArgumentOutOfRangeException("number of rows in input is smaller then end"); 54 57 treeEvaluator.UpperEvaluationLimit = UpperPredictionLimit; 55 58 treeEvaluator.LowerEvaluationLimit = LowerPredictionLimit; 56 59 57 if (start < 0 || end <= start) throw new ArgumentException("start must be larger than zero and strictly smaller than end");58 if (end > input.Rows) throw new ArgumentOutOfRangeException("number of rows in input is smaller then end");59 60 return treeEvaluator.Evaluate(input, functionTree.FunctionTree, Enumerable.Range(start, end - start)); 60 61 }
Note: See TracChangeset
for help on using the changeset viewer.