Changeset 216 for trunk/src/RegressionLocal.h
 Timestamp:
 Dec 29, 2004, 10:29:54 AM (18 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/RegressionLocal.h
r206 r216 32 32 33 33 /// 34 /// Constructor doing the thing. 34 /// Constructor loading the object with data, type of regressor 35 /// and type kernel. 35 36 /// 36 RegressionLocal(const gslapi::vector& x, const gslapi::vector& y, 37 const Regression&, const RegressionKernel&); 37 RegressionLocal(const gslapi::vector& x, const gslapi::vector& y, 38 Regression& r, RegressionKernel& k, 39 const gslapi::vector&); 38 40 39 41 /// … … 47 49 virtual ~RegressionLocal(void) {}; 48 50 51 inline gslapi::vector estimated_x(void) const { return estimated_x_; } 52 inline gslapi::vector estimated_y(void) const { return estimated_y_; } 53 inline gslapi::vector estimated_y_err(void) const {return estimated_y_err_;} 54 55 /// 56 /// Function 57 /// 58 void fit(const double fraction); 49 59 50 51 gslapi::vector data_x_;60 private: 61 std::vector<std::pair<double, double> > data_; 52 62 gslapi::vector data_y_; 53 constRegressionKernel* kernel_;54 constRegression* regression_;63 RegressionKernel* kernel_; 64 Regression* regression_; 55 65 gslapi::vector estimated_x_; 56 66 gslapi::vector estimated_y_; 67 gslapi::vector estimated_y_err_; 57 68 69 58 70 }; 71 72 /// 73 /// The output operator for Local Regression Class. 74 /// 75 std::ostream& operator<< (std::ostream& s, const RegressionLocal&); 59 76 60 77 }} // of namespace statistics and namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.