69 : A(-1.0), x0(-1.0), sigma(-1.0) {}
71 : A(a), x0(x), sigma(s) {}
90 double eval(
double x)
const;
131 static std::vector<double>
eval(
const std::vector<double>& evaluation_points,
const GaussFitResult& model);
Implements a fitter for Gaussian functions.
Definition: GaussFitter.h:61
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:135
const double PI
PI.
Definition: Constants.h:75
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
struct of parameters of a Gaussian distribution
Definition: GaussFitter.h:66
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:74
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:70
double sigma
parameter sigma of Gaussian distribution (width)
Definition: GaussFitter.h:80
GaussFitResult()
Definition: GaussFitter.h:68
double x0
parameter x0 of Gaussian distribution (center position)
Definition: GaussFitter.h:77