- Timestamp:
- 02/22/11 17:57:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs
r5514 r5547 127 127 .Where(i => i < ProblemDataParameter.ActualValue.TestSamplesStart || ProblemDataParameter.ActualValue.TestSamplesEnd <= i); 128 128 } 129 130 public static IEnumerable<double> BoundEstimatedValues(IEnumerable<double> estimatedValues, double lowerEstimationLimit, double upperEstimationLimit) {131 return estimatedValues.Select(v => {132 if (double.IsNaN(v)) return v;133 else if (v < lowerEstimationLimit) return lowerEstimationLimit;134 else if (v > upperEstimationLimit) return upperEstimationLimit;135 return v;136 });137 }138 129 } 139 130 }
Note: See TracChangeset
for help on using the changeset viewer.