Implements a fitter for the Gamma distribution. More...
#include <OpenMS/MATH/STATISTICS/GammaDistributionFitter.h>
Classes | |
| struct | GammaDistributionFitResult |
| struct to represent the parameters of a gamma distribution More... | |
Public Member Functions | |
| GammaDistributionFitter () | |
| Default constructor. | |
| virtual | ~GammaDistributionFitter () |
| Destructor. | |
| void | setInitialParameters (const GammaDistributionFitResult &result) |
| sets the gamma distribution start parameters b and p for the fitting | |
| GammaDistributionFitResult | fit (std::vector< DPosition< 2 > > &points) |
| Fits a gamma distribution to the given data points. | |
| const String & | getGnuplotFormula () const |
| returns the gnuplot formula of the fitted gamma distribution | |
Protected Member Functions | |
| void | printState_ (size_t iter, gsl_multifit_fdfsolver *s) |
Static Protected Member Functions | |
| static int | gammaDistributionFitterf_ (const gsl_vector *x, void *params, gsl_vector *f) |
| static int | gammaDistributionFitterdf_ (const gsl_vector *x, void *params, gsl_matrix *J) |
| static int | gammaDistributionFitterfdf_ (const gsl_vector *x, void *params, gsl_vector *f, gsl_matrix *J) |
Protected Attributes | |
| GammaDistributionFitResult | init_param_ |
| String | gnuplot_formula_ |
Private Member Functions | |
| GammaDistributionFitter (const GammaDistributionFitter &rhs) | |
| Copy constructor (not implemented). | |
| GammaDistributionFitter & | operator= (const GammaDistributionFitter &rhs) |
| assignment operator (not implemented) | |
Implements a fitter for the Gamma distribution.
This class fits a Gamma distribution to a number of data points. The results as well as the initial guess are specified using the struct GammaDistributionFitResult.
The formula with the fitted parameters can be transformed into a gnuplot formula using getGnuplotFormulai() after fitting.
The implementation is done using GSL fitting algorithms.
Default constructor.
| virtual ~GammaDistributionFitter | ( | ) | [virtual] |
Destructor.
| GammaDistributionFitter | ( | const GammaDistributionFitter & | rhs | ) | [private] |
Copy constructor (not implemented).
| GammaDistributionFitResult fit | ( | std::vector< DPosition< 2 > > & | points | ) |
Fits a gamma distribution to the given data points.
| points | Input parameter which represents the point used for the fitting |
| Exception::UnableToFit | is thrown if fitting cannot be performed |
| static int gammaDistributionFitterdf_ | ( | const gsl_vector * | x, | |
| void * | params, | |||
| gsl_matrix * | J | |||
| ) | [static, protected] |
| static int gammaDistributionFitterf_ | ( | const gsl_vector * | x, | |
| void * | params, | |||
| gsl_vector * | f | |||
| ) | [static, protected] |
| static int gammaDistributionFitterfdf_ | ( | const gsl_vector * | x, | |
| void * | params, | |||
| gsl_vector * | f, | |||
| gsl_matrix * | J | |||
| ) | [static, protected] |
| const String& getGnuplotFormula | ( | ) | const |
returns the gnuplot formula of the fitted gamma distribution
| GammaDistributionFitter& operator= | ( | const GammaDistributionFitter & | rhs | ) | [private] |
assignment operator (not implemented)
| void printState_ | ( | size_t | iter, | |
| gsl_multifit_fdfsolver * | s | |||
| ) | [protected] |
| void setInitialParameters | ( | const GammaDistributionFitResult & | result | ) |
sets the gamma distribution start parameters b and p for the fitting
String gnuplot_formula_ [protected] |
GammaDistributionFitResult init_param_ [protected] |
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:43:00 using doxygen 1.7.1 |