# Changeset 206

Ignore:
Timestamp:
Nov 2, 2004, 7:31:09 PM (19 years ago)
Message:

.

Location:
trunk/src
Files:
4 edited

Unmodified
Removed
• ## trunk/src/Regression.h

 r202 /// to the inverse of the variance for \f\$ y_i \f\$ /// virtual int fit_weighted(const gslapi::vector& x, const gslapi::vector& y, const gslapi::vector& w)=0; virtual int fit_weighted(const gslapi::vector& x, const gslapi::vector& y, const gslapi::vector& w)=0;
• ## trunk/src/RegressionLocal.cc

 r202 #include "RegressionLocal.h" #include "Regression.h" #include "RegressionKernel.h" #include "RegressionLinear.h" #include "vector.h" namespace theplu { namespace cpptools { namespace statistics { RegressionLocal::RegressionLocal(const gslapi::vector& x, const gslapi::vector& y, const Regression& r, const RegressionKernel& k) : kernel_(&k), regression_(&r) { }
• ## trunk/src/RegressionLocal.h

 r202 // C++ tools include ///////////////////// #include "Regression.h" #include "RegressionKernel.h" #include "vector.h" namespace statistics { class RegressionKernel; class Regression; /// /// Class for Locally-weighted regression. /// /// Constructor. /// Constructor doing the thing. /// RegressionLocal(Regression&, const RegressionKernel&); RegressionLocal(const gslapi::vector& x, const gslapi::vector& y, const Regression&, const RegressionKernel&); /// /// virtual ~RegressionLocal(void) {}; private: gslapi::vector data_x_; gslapi::vector data_y_; const RegressionKernel* kernel_; const Regression* regression_; gslapi::vector estimated_x_; gslapi::vector estimated_y_; };
• ## trunk/src/RegressionNaive.h

 r204 /// variance for \f\$ y_i \f\$ /// inline int  fit_weighted(gslapi::vector x,gslapi::vector y,gslapi::vector w) inline int fit_weighted(const gslapi::vector& x, const gslapi::vector& y, const gslapi::vector& w) { WeightedAverager a;
Note: See TracChangeset for help on using the changeset viewer.