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/OnlineMeanErrorCalculator.cs

    r15583 r15831  
    2828
    2929    private readonly OnlineMeanAndVarianceCalculator meanAndVarianceCalculator;
    30     public double MeanError {
     30    public double MeanError
     31    {
    3132      get { return meanAndVarianceCalculator.Mean; }
    3233    }
     
    4647
    4748    #region IOnlineCalculator Members
    48     public OnlineCalculatorError ErrorState {
     49    public OnlineCalculatorError ErrorState
     50    {
    4951      get { return meanAndVarianceCalculator.MeanErrorState; }
    5052    }
    51     public double Value {
     53    public double Value
     54    {
    5255      get { return MeanError; }
    5356    }
     
    8386      }
    8487    }
     88
     89    public double CalculateValue(IEnumerable<double> originalValues, IEnumerable<double> estimatedValues, out OnlineCalculatorError errorState) {
     90      return Calculate(originalValues, estimatedValues, out errorState);
     91    }
    8592  }
    8693}
Note: See TracChangeset for help on using the changeset viewer.