Ignore:
Timestamp:
Jan 12, 2007, 1:14:21 PM (16 years ago)
Author:
Peter
Message:

fixes #178 and removes a bug in MultiDimensional?

File:
1 edited

Legend:

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

    r731 r739  
    6363                        fit_parameters_.gsl_vector_p(),
    6464                        covariance_.gsl_matrix_p(),&chisquare_,work_);
     65    s2_ = chisquare_/(x.rows()-x.columns());
    6566  }
    6667
     
    8687  double MultiDimensional::prediction_error2(const utility::vector& x) const
    8788  {
    88     return standard_error2(x)+chisquare_;
     89    return standard_error2(x) + s2_;
    8990  }
    9091
Note: See TracChangeset for help on using the changeset viewer.