OpenMS
GaussFitter::GaussFitResult Struct Reference

struct of parameters of a Gaussian distribution More...

#include <OpenMS/MATH/STATISTICS/GaussFitter.h>

Collaboration diagram for GaussFitter::GaussFitResult:
[legend]

Public Member Functions

 GaussFitResult ()
 
 GaussFitResult (double a, double x, double s)
 
double eval (double x) const
 Evaluate the current density Gaussian model at the specified point. More...
 
double log_eval_no_normalize (double x) const
 Evaluate the current log density of the Gaussian model at the specified point. More...
 

Public Attributes

double A
 parameter A of Gaussian distribution (amplitude) More...
 
double x0
 parameter x0 of Gaussian distribution (center position) More...
 
double sigma
 parameter sigma of Gaussian distribution (width) More...
 

Private Attributes

double halflogtwopi = 0.5*log(2.0*Constants::PI)
 

Detailed Description

struct of parameters of a Gaussian distribution

Constructor & Destructor Documentation

◆ GaussFitResult() [1/2]

GaussFitResult ( )
inline

◆ GaussFitResult() [2/2]

GaussFitResult ( double  a,
double  x,
double  s 
)
inline

Member Function Documentation

◆ eval()

double eval ( double  x) const

Evaluate the current density Gaussian model at the specified point.

Returns the intensities (i.e. probabilities scaled by the factor 'A') of the PDF at the given positions. This function can be called with any set of parameters, e.g. the initial parameters (to get a 'before-fit' status), or after fitting.

◆ log_eval_no_normalize()

double log_eval_no_normalize ( double  x) const

Evaluate the current log density of the Gaussian model at the specified point.

Returns the intensities (i.e. probabilities scaled by the factor 'A') of the PDF at the given positions. This function can be called with any set of parameters, e.g. the initial parameters (to get a 'before-fit' status), or after fitting.

Member Data Documentation

◆ A

double A

parameter A of Gaussian distribution (amplitude)

◆ halflogtwopi

double halflogtwopi = 0.5*log(2.0*Constants::PI)
private

◆ sigma

double sigma

parameter sigma of Gaussian distribution (width)

Referenced by PosteriorErrorProbabilityModel::getGumbel_().

◆ x0

double x0

parameter x0 of Gaussian distribution (center position)

Referenced by PosteriorErrorProbabilityModel::getGumbel_().