00001 #ifndef _theplu_yat_regression_naive_
00002 #define _theplu_yat_regression_naive_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "OneDimensional.h"
00027
00028 #include <iostream>
00029 #include <utility>
00030
00031 namespace theplu {
00032 namespace yat {
00033 namespace utility {
00034 class VectorBase;
00035 }
00036 namespace regression {
00037
00044 class Naive : public OneDimensional
00045 {
00046
00047 public:
00051 Naive(void);
00052
00056 virtual ~Naive(void);
00057
00063 void fit(const utility::VectorBase& x, const utility::VectorBase& y);
00064
00068 double predict(const double x) const;
00069
00075 double s2(void) const;
00076
00084 double standard_error2(const double x) const;
00085
00086 private:
00090 Naive(const Naive&);
00091
00092 double mse_;
00093 };
00094
00095 }}}
00096
00097 #endif