A class to perform non-linear least square fitting. It works on a time serie and uses matrix arithmetic to perform an arbitrary fit (see http://mathworld.wolfram.com/NonlinearLeastSquaresFitting.html).
- Author
- Mathias Bavay
- Date
- 2011-01-20
#include <libfit1DCore.h>
|
| FitLeastSquare (const std::string &i_regname, const size_t &i_nParam, const size_t &i_min_nb_pts) |
|
void | setData (const std::vector< double > &in_X, const std::vector< double > &in_Y) |
|
bool | fit () |
|
virtual double | f (const double &x) const =0 |
|
| 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) |
|
FitModel & | operator= (const FitModel &source) |
|
bool | isReady () const |
|
std::string | toString () const |
|
◆ FitLeastSquare()
mio::FitLeastSquare::FitLeastSquare |
( |
const std::string & |
i_regname, |
|
|
const size_t & |
i_nParam, |
|
|
const size_t & |
i_min_nb_pts |
|
) |
| |
|
inline |
◆ f()
virtual double mio::FitLeastSquare::f |
( |
const double & |
x | ) |
const |
|
pure virtual |
◆ fit()
bool mio::FitLeastSquare::fit |
( |
| ) |
|
|
virtual |
◆ setData()
void mio::FitLeastSquare::setData |
( |
const std::vector< double > & |
in_X, |
|
|
const std::vector< double > & |
in_Y |
|
) |
| |
|
virtual |
◆ setDefaultGuess()
void mio::FitLeastSquare::setDefaultGuess |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: