julian::Regression Class Referenceabstract

Class is an abstract class implementing interface of regression. More...

#include <regression.hpp>

Inheritance diagram for julian::Regression:
julian::DeeplyCopyableRegression< PolynomialRegression > julian::DeeplyCopyableRegression< RegressionWithoutIntercept > julian::DeeplyCopyableRegression< RobustRegression > julian::DeeplyCopyableRegression< SimpleLinearRegression > julian::DeeplyCopyableRegression< T > julian::PolynomialRegression julian::RegressionWithoutIntercept julian::RobustRegression julian::SimpleLinearRegression

Public Member Functions

 Regression ()
 Constructor. More...
 
virtual void estimate (const std::vector< double > &x, const std::vector< double > &y)=0
 Estimates regression coefficients. More...
 
virtual std::vector< double > getCoefficient () const =0
 return coefficients of the regression More...
 
virtual double operator() (double) const =0
 Operator performing calculation. More...
 
virtual Regressionclone () const =0
 Virtual copy constructor. More...
 
virtual ~Regression ()
 Destructor. More...
 

Detailed Description

Class is an abstract class implementing interface of regression.

This class is a interface of all regression techniques.

Constructor & Destructor Documentation

julian::Regression::Regression ( )
inline

Constructor.

virtual julian::Regression::~Regression ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void julian::Regression::estimate ( const std::vector< double > &  x,
const std::vector< double > &  y 
)
pure virtual
virtual std::vector<double> julian::Regression::getCoefficient ( ) const
pure virtual

return coefficients of the regression

The i-th term of vector represents coefficient of $x^i$

Implemented in julian::RobustRegression, julian::PolynomialRegression, julian::SimpleLinearRegression, and julian::RegressionWithoutIntercept.

virtual double julian::Regression::operator() ( double  ) const
pure virtual

Operator performing calculation.

This operator returns the value for a given regressor.

Implemented in julian::RobustRegression, julian::PolynomialRegression, julian::SimpleLinearRegression, and julian::RegressionWithoutIntercept.


The documentation for this class was generated from the following file: