Gaussian distribution fitter (1-dim.) using Levenberg-Marquardt algorithm (GSL implementation) for parameter optimization. More...
#include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/LmaGaussFitter1D.h>
Classes | |
| struct | Data |
| Helper struct (contains the size of an area and a raw data container). More... | |
Public Member Functions | |
| LmaGaussFitter1D () | |
| Default constructor. | |
| LmaGaussFitter1D (const LmaGaussFitter1D &source) | |
| copy constructor | |
| virtual | ~LmaGaussFitter1D () |
| destructor | |
| virtual LmaGaussFitter1D & | operator= (const LmaGaussFitter1D &source) |
| assignment operator | |
| QualityType | fit1d (const RawDataArrayType &range, InterpolationModel *&model) |
| return interpolation model | |
Static Public Member Functions | |
| static Fitter1D * | create () |
| create new LmaGaussFitter1D object (function needed by Factory) | |
| static const String | getProductName () |
| name of the model (needed by Factory) | |
Protected Member Functions | |
| void | setInitialParameters_ (const RawDataArrayType &set) |
| Compute start parameter. | |
| void | printState_ (Int iter, gsl_multifit_fdfsolver *s) |
| void | updateMembers_ () |
Static Protected Member Functions | |
| static Int | residual_ (const gsl_vector *x, void *params, gsl_vector *f) |
| Evaluation of the target function for nonlinear optimization. | |
| static Int | jacobian_ (const gsl_vector *x, void *params, gsl_matrix *J) |
| Compute the Jacobian matrix, where each row of the matrix corresponds to a point in the data. | |
| static Int | evaluate_ (const gsl_vector *x, void *params, gsl_vector *f, gsl_matrix *J) |
| Driver function for the evaluation of function and jacobian. | |
Protected Attributes | |
| CoordinateType | standard_deviation_ |
| parameter of gauss function: standard deviation | |
| CoordinateType | scale_factor_ |
| parameter of gauss function: scale factor | |
| CoordinateType | expected_value_ |
| parameter of gauss function: expected value | |
Gaussian distribution fitter (1-dim.) using Levenberg-Marquardt algorithm (GSL implementation) for parameter optimization.
Parameters of this class are:| Name | Type | Default | Restrictions | Description |
|---|---|---|---|---|
| interpolation_step | float | 0.2 | Sampling rate for the interpolation of the model function. | |
| tolerance_stdev_bounding_box | float | 3 | Bounding box has range [minimim of data, maximum of data] enlarged by tolerance_stdev_bounding_box times the standard deviation of the data. | |
| max_iteration | int | 500 | Maximum number of iterations using by Levenberg-Marquardt algorithm. | |
| deltaAbsError | float | 0.0001 | Absolute error used by the Levenberg-Marquardt algorithm. | |
| deltaRelError | float | 0.0001 | Relative error used by the Levenberg-Marquardt algorithm. | |
| statistics:mean | float | 1 | Centroid position of the model. | |
| statistics:variance | float | 1 | Variance of the model. |
| LmaGaussFitter1D | ( | ) |
Default constructor.
| LmaGaussFitter1D | ( | const LmaGaussFitter1D & | source | ) |
copy constructor
| virtual ~LmaGaussFitter1D | ( | ) | [virtual] |
destructor
| static Fitter1D* create | ( | ) | [inline, static] |
create new LmaGaussFitter1D object (function needed by Factory)
| static Int evaluate_ | ( | const gsl_vector * | x, | |
| void * | params, | |||
| gsl_vector * | f, | |||
| gsl_matrix * | J | |||
| ) | [static, protected] |
Driver function for the evaluation of function and jacobian.
| QualityType fit1d | ( | const RawDataArrayType & | range, | |
| InterpolationModel *& | model | |||
| ) | [virtual] |
return interpolation model
Reimplemented from Fitter1D.
| static Int jacobian_ | ( | const gsl_vector * | x, | |
| void * | params, | |||
| gsl_matrix * | J | |||
| ) | [static, protected] |
Compute the Jacobian matrix, where each row of the matrix corresponds to a point in the data.
| virtual LmaGaussFitter1D& operator= | ( | const LmaGaussFitter1D & | source | ) | [virtual] |
assignment operator
| void printState_ | ( | Int | iter, | |
| gsl_multifit_fdfsolver * | s | |||
| ) | [protected, virtual] |
Diplay the intermediate state of the solution. The solver state contains the vector s->x which is the current position, and the vector s->f with corresponding function values
Implements LevMarqFitter1D.
| static Int residual_ | ( | const gsl_vector * | x, | |
| void * | params, | |||
| gsl_vector * | f | |||
| ) | [static, protected] |
Evaluation of the target function for nonlinear optimization.
| void setInitialParameters_ | ( | const RawDataArrayType & | set | ) | [protected] |
Compute start parameter.
| void updateMembers_ | ( | ) | [protected, virtual] |
Reimplemented from LevMarqFitter1D.
CoordinateType expected_value_ [protected] |
parameter of gauss function: expected value
CoordinateType scale_factor_ [protected] |
parameter of gauss function: scale factor
CoordinateType standard_deviation_ [protected] |
parameter of gauss function: standard deviation
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:57 using doxygen 1.7.1 |