|
|
Go to the documentation of this file. 1 #ifndef GaussianSumUtilities1D_h_
2 #define GaussianSumUtilities1D_h_
43 double pdf(
unsigned int i,
double x)
const;
52 double pdf(
double)
const;
54 double cdf(
const double&)
const;
56 double d1Pdf(
const double&)
const;
58 double d2Pdf(
const double&)
const;
60 double d3Pdf(
const double&)
const;
62 double lnPdf(
const double&)
const;
64 double d1LnPdf(
const double&)
const;
66 double d2LnPdf(
const double&)
const;
79 bool findMode(
double&
mode,
double& pdfAtMode,
const double& xStart,
const double&
scale)
const;
81 static double gauss(
double,
double,
double);
83 static double gaussInt(
double,
double,
double);
111 static double pdf(
double,
const std::vector<double>&);
113 double d1Pdf(
double,
const std::vector<double>&)
const;
115 double d2Pdf(
double,
const std::vector<double>&)
const;
117 double d3Pdf(
double,
const std::vector<double>&)
const;
119 static double lnPdf(
double,
const std::vector<double>&);
121 double d1LnPdf(
double,
const std::vector<double>&)
const;
123 double d2LnPdf(
double,
const std::vector<double>&)
const;
double localVariance(double x) const
static double gaussInt(double, double, double)
Integrated value of gaussian distribution.
double combinedMean() const
Mean value of combined state.
const SingleGaussianState1D & mode() const
double weight() const
combined weight
double lnPdf(const double &) const
ln(pdf)
double standardDeviation(unsigned int i) const
standard deviation of a component
double cdf(const double &) const
value of the c.d.f.
bool findMode(double &mode, double &pdfAtMode, const double &xStart, const double &scale) const
unsigned int size() const
number of components
double d2LnPdf(const double &) const
second derivative of ln(pdf)
double d3Pdf(const double &) const
third derivative of the p.d.f.
double quantile(const double) const
Quantile (i.e. x for a given value of the c.d.f.)
double weight() const
combined weight
double d1LnPdf(const double &) const
first derivative of ln(pdf)
double d1Pdf(const double &) const
first derivative of the p.d.f.
double variance(unsigned int i) const
variance of a component
double mean() const
combined mean
const std::vector< SingleGaussianState1D > & components() const
components
const MultiGaussianState1D & theState
double variance() const
combined covariance
void computeMode() const
calculation of mode
const SingleState1dContainer & components() const
access to components
double pdf(unsigned int i, double x) const
pdf of a single component at x
double mean() const
combined mean
double weight(unsigned int i) const
weight of a component
double variance() const
combined variance
static double gauss(double, double, double)
Value of gaussian distribution.
SingleGaussianState1D theMode
std::vector< double > pdfs
double d2Pdf(const double &) const
second derivative of the p.d.f.
std::vector< double > pdfComponents(const double &) const
pdf components
GaussianSumUtilities1D(const MultiGaussianState1D &state)
void update(FinderState &state, double x) const
bool modeIsValid() const
mode status
~GaussianSumUtilities1D()
double mean(unsigned int i) const
mean value of a component