Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/22/11 17:57:31 (14 years ago)
Author:
gkronber
Message:

#1418 moved range limitation of estimated values to upper and lower limits into HeuristicLab.Common plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Evaluators/SymbolicDataAnalysisEvaluator.cs

    r5514 r5547  
    127127        .Where(i => i < ProblemDataParameter.ActualValue.TestSamplesStart || ProblemDataParameter.ActualValue.TestSamplesEnd <= i);
    128128    }
    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     }
    138129  }
    139130}
Note: See TracChangeset for help on using the changeset viewer.