23 const float* wPtr1(weights);
24 const float* pPtr1(parameters);
25 const float* ePtr1(errors);
30 *(wPtr2++) = weights ? *(wPtr1++) : 1.;
31 *(pPtr2++) = *(pPtr1++);
32 *(ePtr2++) = *(ePtr1++);
48 double pdf (
const double&)
const;
50 double cdf (
const double&)
const;
52 double dpdf1 (
const double&)
const;
54 double dpdf2 (
const double&)
const;
71 double gauss (
const double&,
const double&,
const double&)
const;
73 double gaussInt (
const double&,
const double&,
const double&)
const;
77 double findMode (
const double)
const;
float quantile(const float) const
double errorCombinedMean() const
double cdf(const double &) const
value of integral(pdf)
double findMode(const double) const
double gaussInt(const double &, const double &, const double &) const
integrated value of gaussian distribution
GSUtilities(const unsigned nComp, const float *weights, const float *parameters, const float *errors)
constructor from arrays of weights, parameters and standard deviations
double pdf(const double &) const
value of the pdf
double dpdf2(const double &) const
second derivative of pdf
float errorHighestWeight() const
double combinedMean() const
mean value of combined state
double dpdf1(const double &) const
first derivative of pdf
double gauss(const double &, const double &, const double &) const
value of gaussian distribution