MeteoIODoc 2.11.0
mio::FitModel Class Referenceabstract

#include <libfit1DCore.h>

Public Member Functions

 FitModel (const std::string &i_regname, const size_t &i_nParam, const size_t &i_min_nb_pts)
 
virtual ~FitModel ()
 
virtual void setData (const std::vector< double > &in_X, const std::vector< double > &in_Y)=0
 
void setGuess (const std::vector< double > &lambda_in)
 
virtual void setLapseRate (const double &)
 
virtual void setDegree (const size_t &)
 
virtual bool fit ()=0
 
virtual double f (const double &x) const =0
 
double operator() (const double &x) const
 
std::vector< double > getParams () const
 
std::string getName () const
 
std::string getInfo () const
 
void setInfo (const std::string &info)
 
FitModeloperator= (const FitModel &source)
 
bool isReady () const
 
std::string toString () const
 

Protected Member Functions

virtual bool checkInputs ()
 

Protected Attributes

std::vector< double > Lambda
 
std::vector< double > X
 
std::vector< double > Y
 
std::string infoString
 
const std::string regname
 
size_t nPts
 
size_t nParam
 
size_t min_nb_pts
 
bool fit_ready
 

Constructor & Destructor Documentation

◆ FitModel()

mio::FitModel::FitModel ( const std::string &  i_regname,
const size_t &  i_nParam,
const size_t &  i_min_nb_pts 
)
inline

◆ ~FitModel()

virtual mio::FitModel::~FitModel ( )
inlinevirtual

Member Function Documentation

◆ checkInputs()

bool mio::FitModel::checkInputs ( )
protectedvirtual

◆ f()

virtual double mio::FitModel::f ( const double &  x) const
pure virtual

◆ fit()

virtual bool mio::FitModel::fit ( )
pure virtual

◆ getInfo()

std::string mio::FitModel::getInfo ( ) const
inline

◆ getName()

std::string mio::FitModel::getName ( ) const
inline

◆ getParams()

std::vector< double > mio::FitModel::getParams ( ) const

◆ isReady()

bool mio::FitModel::isReady ( ) const
inline

◆ operator()()

double mio::FitModel::operator() ( const double &  x) const
inline

◆ operator=()

FitModel & mio::FitModel::operator= ( const FitModel source)

◆ setData()

virtual void mio::FitModel::setData ( const std::vector< double > &  in_X,
const std::vector< double > &  in_Y 
)
pure virtual

◆ setDegree()

virtual void mio::FitModel::setDegree ( const size_t &  )
inlinevirtual

Reimplemented in mio::PolynomialRegression.

◆ setGuess()

void mio::FitModel::setGuess ( const std::vector< double > &  lambda_in)

◆ setInfo()

void mio::FitModel::setInfo ( const std::string &  info)
inline

◆ setLapseRate()

virtual void mio::FitModel::setLapseRate ( const double &  )
inlinevirtual

Reimplemented in mio::SimpleLinear.

◆ toString()

std::string mio::FitModel::toString ( ) const

Member Data Documentation

◆ fit_ready

bool mio::FitModel::fit_ready
protected

◆ infoString

std::string mio::FitModel::infoString
protected

◆ Lambda

std::vector<double> mio::FitModel::Lambda
protected

◆ min_nb_pts

size_t mio::FitModel::min_nb_pts
protected

◆ nParam

size_t mio::FitModel::nParam
protected

◆ nPts

size_t mio::FitModel::nPts
protected

◆ regname

const std::string mio::FitModel::regname
protected

◆ X

std::vector<double> mio::FitModel::X
protected

◆ Y

std::vector<double> mio::FitModel::Y
protected

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