Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/30/11 18:04:03 (13 years ago)
Author:
gkronber
Message:

#1453: Added an ErrorState property to online evaluators to indicate if the result value is valid or if there has been an error in the calculation. Adapted all classes that use one of the online evaluators to check this property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IOnlineEvaluator.cs

    r5809 r5894  
    2121
    2222
     23using System;
    2324namespace HeuristicLab.Problems.DataAnalysis {
     25  [Flags]
     26  public enum OnlineEvaluatorError {
     27    /// <summary>
     28    /// No error occurred
     29    /// </summary>
     30    None = 0,
     31    /// <summary>
     32    /// An invalid value has been added (often +/- Infinity and NaN are invalid values)
     33    /// </summary>
     34    InvalidValueAdded = 1,
     35    /// <summary>
     36    /// The number of elements added to the evaluator is not sufficient to calculate the result value
     37    /// </summary>
     38    InsufficientElementsAdded = 2
     39  }
    2440  public interface IOnlineEvaluator {
     41    OnlineEvaluatorError ErrorState { get; }
    2542    double Value { get; }
    2643    void Reset();
Note: See TracChangeset for help on using the changeset viewer.