Ignore:
Timestamp:
Jan 4, 2007, 4:06:14 PM (15 years ago)
Author:
Peter
Message:

fixes #177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/OneDimensional.cc

    r718 r727  
    3737
    3838
    39   double OneDimensional::prediction_error(const double x) const
     39  double OneDimensional::prediction_error2(const double x) const
    4040  {
    41     return sqrt(chisq()+pow(standard_error(x),2));
     41    return chisq()+standard_error2(x);
    4242  }
    4343
     
    5656    for ( double x=min; x<=max; x+=dx) {
    5757      double y = predict(x);
    58       double y_err = prediction_error(x);
     58      double y_err = sqrt(prediction_error2(x));
    5959      os << x << "\t" << y << "\t" << y_err << "\n";
    6060    }
Note: See TracChangeset for help on using the changeset viewer.