Ignore:
Timestamp:
Oct 26, 2006, 4:04:35 PM (15 years ago)
Author:
Peter
Message:

Refs #81 moved mse_ to inherited classes and made mse() pure virtual because mse is calculated different for different classes and therefore this design is more logic. Fixed docs and other things...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/Naive.h

    r697 r702  
    4949    /// Default Constructor.
    5050    ///
    51     inline Naive(void) : OneDimensional(), m_(0.0), m_err_(0.0) {}
     51    inline Naive(void) : OneDimensional(), mse_(0.0) {}
    5252
    5353    ///
     
    7070
    7171    ///
     72    /// @brief Mean Squared Error
     73    ///
     74    inline double mse(void) const { return mse_; }
     75
     76    ///
    7277    /// Function predicting value using the naive model.
    7378    ///
     
    8085
    8186  private:
    82     double m_;
    83     double m_err_; // error of estimation of mean m_
    84 
     87    double mse_;
    8588  };
    8689
Note: See TracChangeset for help on using the changeset viewer.