Implements a fitter for gaussian functions. More...
#include <OpenMS/MATH/STATISTICS/GaussFitter.h>
| Classes | |
| struct | GaussFitResult | 
| struct of parameters of a gaussian distribution  More... | |
| Public Member Functions | |
| GaussFitter () | |
| Default constructor.  More... | |
| virtual | ~GaussFitter () | 
| Destructor.  More... | |
| void | setInitialParameters (const GaussFitResult &result) | 
| sets the initial parameters used by the fit method as inital guess for the gaussian  More... | |
| GaussFitResult | fit (std::vector< DPosition< 2 > > &points) | 
| Fits a gaussian distribution to the given data points.  More... | |
| const String & | getGnuplotFormula () const | 
| return the gnuplot formula of the gaussian  More... | |
| Protected Member Functions | |
| void | printState_ (size_t iter, gsl_multifit_fdfsolver *s) | 
| Static Protected Member Functions | |
| static int | gaussFitterf_ (const gsl_vector *x, void *params, gsl_vector *f) | 
| static int | gaussFitterdf_ (const gsl_vector *x, void *params, gsl_matrix *J) | 
| static int | gaussFitterfdf_ (const gsl_vector *x, void *params, gsl_vector *f, gsl_matrix *J) | 
| Protected Attributes | |
| GaussFitResult | init_param_ | 
| String | gnuplot_formula_ | 
| Private Member Functions | |
| GaussFitter (const GaussFitter &rhs) | |
| Copy constructor (not implemented)  More... | |
| GaussFitter & | operator= (const GaussFitter &rhs) | 
| Assignment operator (not implemented)  More... | |
Implements a fitter for gaussian functions.
This class fits a gaussian distribution to a number of data points. The results as well as the initial guess are specified using the struct GaussFitResult.
The complete gaussian formula with the fitted parameters can be transformed into a gnuplot formula using getGnuplotFormula after fitting.
The fitting is implemented using GSL fitting algorithms.
| GaussFitter | ( | ) | 
Default constructor.
| 
 | virtual | 
Destructor.
| 
 | private | 
Copy constructor (not implemented)
| GaussFitResult fit | ( | std::vector< DPosition< 2 > > & | points | ) | 
Fits a gaussian distribution to the given data points.
| points | the data points used for the gaussian fitting | 
| Exception::UnableToFit | is thrown if fitting cannot be performed | 
| 
 | staticprotected | 
| 
 | staticprotected | 
| 
 | staticprotected | 
| const String& getGnuplotFormula | ( | ) | const | 
return the gnuplot formula of the gaussian
| 
 | private | 
Assignment operator (not implemented)
| 
 | protected | 
| void setInitialParameters | ( | const GaussFitResult & | result | ) | 
sets the initial parameters used by the fit method as inital guess for the gaussian
| 
 | protected | 
| 
 | protected | 
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:38 using doxygen 1.8.5 |