Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/17/13 13:32:08 (11 years ago)
Author:
ascheibe
Message:

#2031

  • made operations in ChartAnalysisView asynchronous
  • renamed views to go along with the other RunCollection views
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/LinearLeastSquaresFitting.cs

    r9706 r9713  
    5252    }
    5353
    54     //TODO: adapt or remove
    55     public double CalculateError(double[] dataPoints, double a1, double a0) {
     54    public double CalculateError(double[] dataPoints, double p0, double p1) {
    5655      double r = 0.0;
    5756      double avgy = dataPoints.Average();
     
    6059
    6160      for (int i = 0; i < dataPoints.Count(); i++) {
    62         double y = a1 * i + a0;
     61        double y = p0 * i + p1;
    6362        sstot += Math.Pow(dataPoints[i] - avgy, 2);
    6463        sserr += Math.Pow(dataPoints[i] - y, 2);
Note: See TracChangeset for help on using the changeset viewer.