# Changeset 1020 for trunk/yat/regression

Ignore:
Timestamp:
Feb 1, 2008, 6:17:26 PM (15 years ago)
Message:

passing VectorBase? in regression::OneDimesionalWeighted? - refs #256

Location:
trunk/yat/regression
Files:
7 edited

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

 r1000 } void LinearWeighted::fit(const utility::vector& x, const utility::vector& y, const utility::vector& w) void LinearWeighted::fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w) { assert(x.size()==y.size());
• ## trunk/yat/regression/LinearWeighted.h

 r1000 namespace yat { namespace utility { class vector; class VectorBase; } namespace regression { **/ /// @todo calculate mse void fit(const utility::vector& x, const utility::vector& y, const utility::vector& w); void fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w); ///
• ## trunk/yat/regression/NaiveWeighted.cc

 r1000 } void NaiveWeighted::fit(const utility::vector& x, const utility::vector& y, const utility::vector& w) void NaiveWeighted::fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w) { assert(x.size()==y.size());
• ## trunk/yat/regression/NaiveWeighted.h

 r1000 namespace yat { namespace utility { class vector; class VectorBase; } namespace regression { the inverse of the variance for \f\$ y_i \f\$ */ void fit(const utility::vector& x, const utility::vector& y, const utility::vector& w); void fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w); ///
• ## trunk/yat/regression/OneDimensionalWeighted.h

 r1000 namespace yat { namespace utility { class vector; class VectorBase; } namespace regression { to the inverse of the variance for \f\$ y_i \f\$ */ virtual void fit(const utility::vector& x, const utility::vector& y, const utility::vector& w)=0; virtual void fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w)=0; ///
• ## trunk/yat/regression/PolynomialWeighted.cc

 r1000 } void PolynomialWeighted::fit(const utility::vector& x, const utility::vector& y, const utility::vector& w) void PolynomialWeighted::fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w) { assert(x.size()==y.size());
• ## trunk/yat/regression/PolynomialWeighted.h

 r1000 /// y_i \f\$ /// void fit(const utility::vector& x, const utility::vector& y, const utility::vector& w); void fit(const utility::VectorBase& x, const utility::VectorBase& y, const utility::VectorBase& w); /// /// const utility::vector& fit_parameters(void) const; /// /// @return parameters for polynomial model /// utility::vector fit_parameters(void) { return md_.fit_parameters(); } ///
Note: See TracChangeset for help on using the changeset viewer.