Changeset 8966 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 11/28/12 12:27:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineMeanAndVarianceCalculator.cs
r8965 r8966 73 73 74 74 public void Add(double x) { 75 if (double.IsNaN(x) || double.IsInfinity(x) || (errorState & OnlineCalculatorError.InvalidValueAdded) > 0) {75 if (double.IsNaN(x) || double.IsInfinity(x) || x > 1E13 || x < -1E13 || (errorState & OnlineCalculatorError.InvalidValueAdded) > 0) { 76 76 errorState = errorState | OnlineCalculatorError.InvalidValueAdded; 77 77 varianceErrorState = errorState | OnlineCalculatorError.InvalidValueAdded;
Note: See TracChangeset
for help on using the changeset viewer.