Ignore:
Timestamp:
Dec 29, 2004, 10:29:54 AM (18 years ago)
Author:
Peter
Message:

RegressionLocal? added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/RegressionLinear.h

    r213 r216  
    4040    virtual ~RegressionLinear(void) {};
    4141         
     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
    4247    ///
    4348    /// This function computes the best-fit linear regression
     
    4752    ///
    4853    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,
    5056                            x.gsl_vector_pointer()->stride,
    5157                            y.gsl_vector_pointer()->data,
     
    6773    inline int fit_weighted(const gslapi::vector& x, const gslapi::vector& y,
    6874                            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,
    7077                             x.gsl_vector_pointer()->stride,
    7178                             w.gsl_vector_pointer()->data,
Note: See TracChangeset for help on using the changeset viewer.