Changeset 11417


Ignore:
Timestamp:
10/06/14 13:25:58 (5 years ago)
Author:
mkommend
Message:

#2255: Unified behavior of online calculators by removing the range check from the OnlineMeanAndVarianceCalculator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanAndVarianceCalculator.cs

    r11171 r11417  
    7373
    7474    public void Add(double x) {
    75       if (double.IsNaN(x) || double.IsInfinity(x) || x > 1E13 || x < -1E13 || (errorState & OnlineCalculatorError.InvalidValueAdded) > 0) {
     75      if (double.IsNaN(x) || double.IsInfinity(x) || (errorState & OnlineCalculatorError.InvalidValueAdded) > 0) {
    7676        errorState = errorState | OnlineCalculatorError.InvalidValueAdded;
    7777        varianceErrorState = errorState | OnlineCalculatorError.InvalidValueAdded;
Note: See TracChangeset for help on using the changeset viewer.