Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Classes | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
GaussFitter Class Reference

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 ()
 Constructor. More...
 
virtual ~GaussFitter ()
 Destructor. More...
 
void setInitialParameters (const GaussFitResult &result)
 sets the initial parameters used by the fit method as initial guess for the gaussian More...
 
GaussFitResult fit (std::vector< DPosition< 2 > > &points)
 Fits a gaussian distribution to the given data points. More...
 

Protected Attributes

GaussFitResult init_param_
 

Private Member Functions

 GaussFitter (const GaussFitter &rhs)
 Copy constructor (not implemented) More...
 
GaussFitteroperator= (const GaussFitter &rhs)
 Assignment operator (not implemented) More...
 

Detailed Description

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.

Constructor & Destructor Documentation

Constructor.

virtual ~GaussFitter ( )
virtual

Destructor.

GaussFitter ( const GaussFitter rhs)
private

Copy constructor (not implemented)

Member Function Documentation

GaussFitResult fit ( std::vector< DPosition< 2 > > &  points)

Fits a gaussian distribution to the given data points.

Parameters
pointsthe data points used for the gaussian fitting
Exceptions
Exception::UnableToFitis thrown if fitting cannot be performed
GaussFitter& operator= ( const GaussFitter rhs)
private

Assignment operator (not implemented)

void setInitialParameters ( const GaussFitResult result)

sets the initial parameters used by the fit method as initial guess for the gaussian

Member Data Documentation

GaussFitResult init_param_
protected

OpenMS / TOPP release 2.0.0 Documentation generated on Wed Mar 30 2016 16:18:50 using doxygen 1.8.5