34 #if defined(SimpleLinearRegression_RECURSES)
35 #error Recursive header files inclusion detected in SimpleLinearRegression.h
38 #define SimpleLinearRegression_RECURSES
40 #if !defined SimpleLinearRegression_h
42 #define SimpleLinearRegression_h
109 template <
class XIterator,
class YIterator>
110 void addSamples( XIterator begin_x, XIterator end_x, YIterator begin_y );
172 const double a )
const;
290 #include "DGtal/math/SimpleLinearRegression.ih"
297 #undef SimpleLinearRegression_RECURSES
Description of class 'SimpleLinearRegression'.
void addSample(const double x, const double y)
void addSamples(XIterator begin_x, XIterator end_x, YIterator begin_y)
double estimateY(double x) const
~SimpleLinearRegression()
std::vector< double > myU
void setEpsilonZero(const double aEpsilonZero)
SimpleLinearRegression & operator=(const SimpleLinearRegression &other)
unsigned int myN
Number of samples.
double estimateVariance() const
double myEpsilonZero
Epsilon zero value.
std::pair< double, double > trustIntervalForY(const double x, const double a) const
std::vector< double > myX
Abscissa values of sample points.
void selfDisplay(std::ostream &that_stream) const
SimpleLinearRegression(const SimpleLinearRegression &other)
SimpleLinearRegression(double eps_zero=1e-8)
double epsilonZero() const
std::vector< double > myY
Ordinate values of sample points.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)