Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/18 10:44:51 (7 years ago)
Author:
fholzing
Message:

#2904: Refactored RegressionSolutionVariableImpactsCalculator. We don't dependent on the solution anymore. The impact can be calculated for a single variable. The calculator can be chosen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2904_CalculateImpacts/3.4/OnlineCalculators/OnlineMaxAbsoluteErrorCalculator.cs

    r15583 r15831  
    2929    private double mae;
    3030    private int n;
    31     public double MaxAbsoluteError {
    32       get {
     31    public double MaxAbsoluteError
     32    {
     33      get
     34      {
    3335        return n > 0 ? mae : 0.0;
    3436      }
     
    5153    #region IOnlineCalculator Members
    5254    private OnlineCalculatorError errorState;
    53     public OnlineCalculatorError ErrorState {
     55    public OnlineCalculatorError ErrorState
     56    {
    5457      get { return errorState; }
    5558    }
    56     public double Value {
     59    public double Value
     60    {
    5761      get { return MaxAbsoluteError; }
    5862    }
     
    99103      }
    100104    }
     105
     106    public double CalculateValue(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) {
     107      return Calculate(originalValues, estimatedValues, out errorState);
     108    }
    101109  }
    102110}
Note: See TracChangeset for help on using the changeset viewer.