Changeset 1019
- Timestamp:
- Feb 1, 2008, 6:10:34 PM (16 years ago)
- Location:
- trunk/yat/regression
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/regression/Linear.cc
r1000 r1019 24 24 #include "Linear.h" 25 25 #include "yat/statistics/AveragerPair.h" 26 #include "yat/utility/ vector.h"26 #include "yat/utility/VectorBase.h" 27 27 28 28 namespace theplu { … … 59 59 } 60 60 61 void Linear::fit(const utility:: vector& x, const utility::vector& y)61 void Linear::fit(const utility::VectorBase& x, const utility::VectorBase& y) 62 62 { 63 63 ap_.reset(); -
trunk/yat/regression/Linear.h
r1000 r1019 33 33 namespace yat { 34 34 namespace utility { 35 class vector;35 class VectorBase; 36 36 } 37 37 namespace regression { … … 94 94 are independent. 95 95 */ 96 void fit(const utility:: vector& x, const utility::vector& y) ;96 void fit(const utility::VectorBase& x, const utility::VectorBase& y) ; 97 97 98 98 /// -
trunk/yat/regression/Naive.cc
r1000 r1019 28 28 #include "yat/statistics/Averager.h" 29 29 #include "yat/statistics/AveragerWeighted.h" 30 #include "yat/utility/ vector.h"30 #include "yat/utility/VectorBase.h" 31 31 32 32 #include <cmath> … … 47 47 48 48 49 void Naive::fit(const utility:: vector& x, const utility::vector& y)49 void Naive::fit(const utility::VectorBase& x, const utility::VectorBase& y) 50 50 { 51 51 ap_.reset(); -
trunk/yat/regression/Naive.h
r1000 r1019 35 35 namespace yat { 36 36 namespace utility { 37 class vector;37 class VectorBase; 38 38 } 39 39 namespace regression { … … 64 64 /// \sum{(y_i-m)^2} \f$. 65 65 /// 66 void fit(const utility:: vector& x, const utility::vector& y);66 void fit(const utility::VectorBase& x, const utility::VectorBase& y); 67 67 68 68 /// -
trunk/yat/regression/OneDimensional.h
r1000 r1019 34 34 namespace yat { 35 35 namespace utility { 36 class vector;36 class VectorBase; 37 37 } 38 38 namespace regression { … … 70 70 \f$, where \f$ \hat{y} \f$ is the fitted value. 71 71 */ 72 virtual void fit(const utility::vector& x, const utility::vector& y)=0; 72 virtual void fit(const utility::VectorBase& x, 73 const utility::VectorBase& y)=0; 73 74 74 75 /// -
trunk/yat/regression/Polynomial.cc
r1000 r1019 26 26 #include "Polynomial.h" 27 27 #include "yat/utility/matrix.h" 28 #include "yat/utility/ vector.h"28 #include "yat/utility/VectorBase.h" 29 29 30 30 namespace theplu { … … 49 49 50 50 51 void Polynomial::fit(const utility::vector& x, const utility::vector& y) 51 void Polynomial::fit(const utility::VectorBase& x, 52 const utility::VectorBase& y) 52 53 { 53 54 ap_.add_values(x,y); -
trunk/yat/regression/Polynomial.h
r1000 r1019 32 32 namespace yat { 33 33 namespace utility { 34 class vector;34 class VectorBase; 35 35 } 36 36 namespace regression { … … 65 65 /// model and data. 66 66 /// 67 void fit(const utility:: vector& x, const utility::vector& y);67 void fit(const utility::VectorBase& x, const utility::VectorBase& y); 68 68 69 69 ///
Note: See TracChangeset
for help on using the changeset viewer.