Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/11 15:38:16 (14 years ago)
Author:
mkommend
Message:

#1453: Renamed IOnlineEvaluator to IOnlineCalculator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineEvaluators/OnlineLinearScalingParameterCalculator.cs

    r5894 r5942  
    4444          return 1;
    4545        else
    46           return originalTargetCovarianceEvaluator.Covariance / originalMeanAndVarianceCalculator.PopulationVariance;
     46          return originalTargetCovarianceCalculator.Covariance / originalMeanAndVarianceCalculator.PopulationVariance;
    4747      }
    4848    }
    4949
    50     public OnlineEvaluatorError ErrorState {
     50    public OnlineCalculatorError ErrorState {
    5151      get {
    5252        return targetMeanCalculator.MeanErrorState | originalMeanAndVarianceCalculator.MeanErrorState |
    53           originalMeanAndVarianceCalculator.PopulationVarianceErrorState | originalTargetCovarianceEvaluator.ErrorState;
     53          originalMeanAndVarianceCalculator.PopulationVarianceErrorState | originalTargetCovarianceCalculator.ErrorState;
    5454      }
    5555    }
     
    5858    private OnlineMeanAndVarianceCalculator targetMeanCalculator;
    5959    private OnlineMeanAndVarianceCalculator originalMeanAndVarianceCalculator;
    60     private OnlineCovarianceEvaluator originalTargetCovarianceEvaluator;
     60    private OnlineCovarianceCalculator originalTargetCovarianceCalculator;
    6161
    6262    public OnlineLinearScalingParameterCalculator() {
    6363      targetMeanCalculator = new OnlineMeanAndVarianceCalculator();
    6464      originalMeanAndVarianceCalculator = new OnlineMeanAndVarianceCalculator();
    65       originalTargetCovarianceEvaluator = new OnlineCovarianceEvaluator();
     65      originalTargetCovarianceCalculator = new OnlineCovarianceCalculator();
    6666      Reset();
    6767    }
     
    7171      targetMeanCalculator.Reset();
    7272      originalMeanAndVarianceCalculator.Reset();
    73       originalTargetCovarianceEvaluator.Reset();
     73      originalTargetCovarianceCalculator.Reset();
    7474    }
    7575
     
    8383      targetMeanCalculator.Add(target);
    8484      originalMeanAndVarianceCalculator.Add(original);
    85       originalTargetCovarianceEvaluator.Add(original, target);
     85      originalTargetCovarianceCalculator.Add(original, target);
    8686
    8787      cnt++;
     
    9797    /// <param name="beta">Multiplicative factor for the linear scaling</param>
    9898    /// <param name="errorState">Flag that indicates if errors occurred in the calculation of the linea scaling parameters.</param>
    99     public static void Calculate(IEnumerable<double> original, IEnumerable<double> target, out double alpha, out double beta, out OnlineEvaluatorError errorState) {
     99    public static void Calculate(IEnumerable<double> original, IEnumerable<double> target, out double alpha, out double beta, out OnlineCalculatorError errorState) {
    100100      OnlineLinearScalingParameterCalculator calculator = new OnlineLinearScalingParameterCalculator();
    101101      IEnumerator<double> originalEnumerator = original.GetEnumerator();
Note: See TracChangeset for help on using the changeset viewer.