julian::DeeplyCopyableRegression< T > Class Template Reference

Class uses Curiously Recurring Template Pattern to implement polymorphic copy construction in every derived class implementing Regression. More...

#include <regression.hpp>

Inheritance diagram for julian::DeeplyCopyableRegression< T >:
julian::Regression

Public Member Functions

virtual Regressionclone () const
 virtual copy constructor More...
 
- Public Member Functions inherited from julian::Regression
 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 ~Regression ()
 Destructor. More...
 

Detailed Description

template<typename T>
class julian::DeeplyCopyableRegression< T >

Class uses Curiously Recurring Template Pattern to implement polymorphic copy construction in every derived class implementing Regression.

For more details see Virtual Copy Constructor, CRTP and Deep Copy

Member Function Documentation

template<typename T>
virtual Regression* julian::DeeplyCopyableRegression< T >::clone ( ) const
inlinevirtual

virtual copy constructor

Implements julian::Regression.


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