Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/28/12 12:19:01 (12 years ago)
Author:
mkommend
Message:

#1917: Added missing event registration in AfterDeserialization of CrossValidation and clean up code if a problem changes in the crossvalidation. Additionally, I removed explicit calls to OnReset in the Load methods of IDataAnalysisProblems the reset event is automatically fired when the problem data is changed.

File:
1 edited

Legend:

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

    r7259 r8965  
    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.