# Changeset 1019 for trunk/yat/regression

Ignore:
Timestamp:
Feb 1, 2008, 6:10:34 PM (14 years ago)
Message:

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

Location:
trunk/yat/regression
Files:
7 edited

Unmodified
Added
Removed
• ## trunk/yat/regression/Linear.cc

 r1000 #include "Linear.h" #include "yat/statistics/AveragerPair.h" #include "yat/utility/vector.h" #include "yat/utility/VectorBase.h" namespace theplu { } void Linear::fit(const utility::vector& x, const utility::vector& y) void Linear::fit(const utility::VectorBase& x, const utility::VectorBase& y) { ap_.reset();
• ## trunk/yat/regression/Linear.h

 r1000 namespace yat { namespace utility { class vector; class VectorBase; } namespace regression { are independent. */ void fit(const utility::vector& x, const utility::vector& y) ; void fit(const utility::VectorBase& x, const utility::VectorBase& y) ; ///
• ## trunk/yat/regression/Naive.cc

 r1000 #include "yat/statistics/Averager.h" #include "yat/statistics/AveragerWeighted.h" #include "yat/utility/vector.h" #include "yat/utility/VectorBase.h" #include void Naive::fit(const utility::vector& x, const utility::vector& y) void Naive::fit(const utility::VectorBase& x, const utility::VectorBase& y) { ap_.reset();

• ## trunk/yat/regression/Polynomial.cc

 r1000 #include "Polynomial.h" #include "yat/utility/matrix.h" #include "yat/utility/vector.h" #include "yat/utility/VectorBase.h" namespace theplu { void Polynomial::fit(const utility::vector& x, const utility::vector& y) void Polynomial::fit(const utility::VectorBase& x, const utility::VectorBase& y) { ap_.add_values(x,y);
• ## trunk/yat/regression/Polynomial.h

 r1000 namespace yat { namespace utility { class vector; class VectorBase; } namespace regression { /// model and data. /// void fit(const utility::vector& x, const utility::vector& y); void fit(const utility::VectorBase& x, const utility::VectorBase& y); ///
Note: See TracChangeset for help on using the changeset viewer.