Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/18 10:44:51 (6 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/OnlineMeanSquaredErrorCalculator.cs

    r15583 r15831  
    2929    private double sse;
    3030    private int n;
    31     public double MeanSquaredError {
    32       get {
     31    public double MeanSquaredError
     32    {
     33      get
     34      {
    3335        return n > 0 ? sse / n : 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 MeanSquaredError; }
    5862    }
     
    98102      }
    99103    }
     104
     105    public double CalculateValue(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) {
     106      return Calculate(originalValues, estimatedValues, out errorState);
     107    }
    100108  }
    101109}
Note: See TracChangeset for help on using the changeset viewer.