Changeset 216 for trunk/src/Regression.h
- Timestamp:
- Dec 29, 2004, 10:29:54 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Regression.h
r213 r216 34 34 virtual ~Regression(void) {}; 35 35 36 virtual void estimate(const double x, double& y, double& y_err) const=0; 37 36 38 /// 37 39 /// This function computes the best-fit given a model (see … … 44 46 /// This function computes the best-fit given a model (see 45 47 /// specific class for details) by minimizing \f$ 46 /// \sum{ (w_i\hat{y_i}-y_i)^2} \f$, where \f$ \hat{y} \f$ is the48 /// \sum{w_i(\hat{y_i}-y_i)^2} \f$, where \f$ \hat{y} \f$ is the 47 49 /// fitted value. The weight \f$ w_i \f$ is should be proportional 48 50 /// to the inverse of the variance for \f$ y_i \f$
Note: See TracChangeset
for help on using the changeset viewer.