1 #ifndef _theplu_yat_regression_onedimensional_
2 #define _theplu_yat_regression_onedimensional_
27 #include "yat/statistics/AveragerPair.h"
36 namespace regression {
63 double chisq(
void)
const;
76 virtual double predict(
const double x)
const=0;
105 std::ostream&
print(std::ostream& os,
const double min,
106 double max,
const unsigned int n)
const;
114 double r2(
void)
const;
121 virtual double s2(
void)
const=0;
double variance(void) const
std::ostream & print(std::ostream &os, const double min, double max, const unsigned int n) const
print output to ostream os
virtual ~OneDimensional(void)
The destructor.
virtual double predict(const double x) const =0
Class for taking care of mean and covariance of two variables.
Definition: AveragerPair.h:47
T max(const T &a, const T &b, const T &c)
Definition: stl_utility.h:697
This is the yat interface to GSL vector.
Definition: VectorBase.h:52
double chisq_
Definition: OneDimensional.h:144
statistics::AveragerPair ap_
Definition: OneDimensional.h:139
double prediction_error2(const double x) const
virtual void fit(const utility::VectorBase &x, const utility::VectorBase &y)=0
Interface Class for One Dimensional fitting.
Definition: OneDimensional.h:43
OneDimensional(void)
The default constructor.
virtual double s2(void) const =0
double chisq(void) const
Chi-squared.
virtual double standard_error2(const double x) const =0