Ignore:
Timestamp:
Jun 19, 2006, 11:56:04 AM (17 years ago)
Author:
Peter
Message:

closes #23 redesign of regression classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/statistics/Naive.h

    r430 r586  
    4949
    5050    ///
    51     /// Function predicting value using the naive model. \a y_err is
    52     /// the expected deviation from the line for a new data point. The
     51    /// Function predicting value using the naive model.
     52    ///
     53    double predict(const double x) const;
     54 
     55    ///
     56    /// The expected deviation from the line for a new data point. The
    5357    /// error has two components: the variance of point and error in
    54     /// estimation of the mean.
     58    /// estimation of the mean. 
    5559    ///
    56     void predict(const double x, double& y, double& y_err) const;
     60    double prediction_error(const double x) const;
    5761
    5862    ///
    59     /// @return header for print()
     63    /// @return standard error
    6064    ///
    61     std::ostream& print_header(std::ostream&) const;
    62              
    63          
     65    double standard_error(const double x) const;
     66
    6467  private:
    65     double s2_; // noise level - the typical variance for a point with
    66                 // weight w is s2/w
    6768    double m_;
    6869    double m_err_; // error of estimation of mean m_
Note: See TracChangeset for help on using the changeset viewer.