43 : A(-1.0), x0(-1.0), sigma(-1.0) {}
45 : A(a), x0(x), sigma(s) {}
64 double eval(
double x)
const;
105 static std::vector<double>
eval(
const std::vector<double>& evaluation_points,
const GaussFitResult& model);
Implements a fitter for Gaussian functions.
Definition: GaussFitter.h:35
void setInitialParameters(const GaussFitResult &result)
sets the initial parameters used by the fit method as initial guess for the Gaussian
GaussFitter & operator=(const GaussFitter &rhs)
Assignment operator (not implemented)
GaussFitter()
Constructor.
virtual ~GaussFitter()
Destructor.
static std::vector< double > eval(const std::vector< double > &evaluation_points, const GaussFitResult &model)
Evaluate the current Gaussian model at the specified points.
GaussFitResult fit(std::vector< DPosition< 2 > > &points) const
Fits a Gaussian distribution to the given data points.
GaussFitter(const GaussFitter &rhs)
Copy constructor (not implemented)
GaussFitResult init_param_
Definition: GaussFitter.h:109
const double PI
PI.
Definition: Constants.h:49
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
struct of parameters of a Gaussian distribution
Definition: GaussFitter.h:40
double log_eval_no_normalize(double x) const
Evaluate the current log density of the Gaussian model at the specified point.
double A
parameter A of Gaussian distribution (amplitude)
Definition: GaussFitter.h:48
double eval(double x) const
Evaluate the current density Gaussian model at the specified point.
GaussFitResult(double a, double x, double s)
Definition: GaussFitter.h:44
double sigma
parameter sigma of Gaussian distribution (width)
Definition: GaussFitter.h:54
GaussFitResult()
Definition: GaussFitter.h:42
double x0
parameter x0 of Gaussian distribution (center position)
Definition: GaussFitter.h:51