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

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/RegressionLinear.h
r213 r216 40 40 virtual ~RegressionLinear(void) {}; 41 41 42 inline void estimate(const double x, double& y, double& y_err) const 43 { 44 gsl_fit_linear_est(x, m_, k_, cov00_, cov01_, cov11_, &y, &y_err); 45 } 46 42 47 /// 43 48 /// This function computes the bestfit linear regression … … 47 52 /// 48 53 inline int fit(const gslapi::vector& x, const gslapi::vector& y) 49 { return gsl_fit_linear(x.gsl_vector_pointer()>data, 54 { 55 return gsl_fit_linear(x.gsl_vector_pointer()>data, 50 56 x.gsl_vector_pointer()>stride, 51 57 y.gsl_vector_pointer()>data, … … 67 73 inline int fit_weighted(const gslapi::vector& x, const gslapi::vector& y, 68 74 const gslapi::vector& w) 69 { return gsl_fit_wlinear(x.gsl_vector_pointer()>data, 75 { 76 return gsl_fit_wlinear(x.gsl_vector_pointer()>data, 70 77 x.gsl_vector_pointer()>stride, 71 78 w.gsl_vector_pointer()>data,
Note: See TracChangeset
for help on using the changeset viewer.