# Changeset 741 for trunk/yat/regression

Ignore:
Timestamp:
Jan 13, 2007, 3:41:40 PM (15 years ago)
Message:

fixes #161 and #164

Location:
trunk/yat/regression
Files:
5 edited

Unmodified
Removed
• ## trunk/yat/regression/MultiDimensionalWeighted.cc

 r740 gsl_multifit_linear_free(work_); } double MultiDimensionalWeighted::chisq() const { return chisquare_; } void MultiDimensionalWeighted::fit(const utility::matrix& x,
• ## trunk/yat/regression/MultiDimensionalWeighted.h

 r740 /// /// @return sum of squared residuals /// double chisq(void) const; /// /// @see gsl_multifit_wlinear ///
• ## trunk/yat/regression/Polynomial.cc

 r729 void Polynomial::fit(const utility::vector& x, const utility::vector& y) { ap_.add_values(x,y); utility::matrix X=utility::matrix(x.size(),power_+1,1); for (size_t i=0; i
• ## trunk/yat/regression/PolynomialWeighted.cc

 r740 assert(x.size()==y.size()); assert(y.size()==w.size()); ap_.reset(); // AveragerPairWeighted requires 2 weights but works only on the // product wx*wy, so we can send in w and a dummie to get what we // want. ap_.add_values(x,y,utility::vector(x.size(),1),w); utility::matrix X=utility::matrix(x.size(),power_+1,1); for (size_t i=0; i
• ## trunk/yat/regression/PolynomialWeighted.h

 r740 /// /// @return expected prediction error for a new data point in @a x /// with weight @a w /// double prediction_error2(const double x, const double w=1) const; /// /// @return error of model value in @a x ///
Note: See TracChangeset for help on using the changeset viewer.