54 double eval(
double x)
const;
Implements a fitter for the Gumbel distribution.
Definition GumbelMaxLikelihoodFitter.h:32
virtual ~GumbelMaxLikelihoodFitter()
Destructor.
GumbelMaxLikelihoodFitter(const GumbelMaxLikelihoodFitter &rhs)
Copy constructor (not implemented)
GumbelDistributionFitResult fitWeighted(const std::vector< double > &x, const std::vector< double > &w)
Fits a Gumbel (maximum) distribution to the data points x with weights w by weighted maximum likeliho...
GumbelDistributionFitResult init_param_
Definition GumbelMaxLikelihoodFitter.h:90
GumbelMaxLikelihoodFitter & operator=(const GumbelMaxLikelihoodFitter &rhs)
assignment operator (not implemented)
GumbelMaxLikelihoodFitter(GumbelDistributionFitResult init)
Default constructor.
GumbelMaxLikelihoodFitter()
Default constructor.
void setInitialParameters(const GumbelDistributionFitResult &result)
sets the gumbel distribution start parameters a and b for the fitting
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
struct to represent the parameters of a gumbel distribution
Definition GumbelMaxLikelihoodFitter.h:38
double a
location parameter a
Definition GumbelMaxLikelihoodFitter.h:46
double b
scale parameter b
Definition GumbelMaxLikelihoodFitter.h:48
double log_eval_no_normalize(double x) const
log density at x. Note: despite its name, the density is fully normalized.
double eval(double x) const
(normalized) density at x
GumbelDistributionFitResult(double local_a, double local_b)
Definition GumbelMaxLikelihoodFitter.h:39
double mode() const
mode of the distribution (equals the location parameter a)