40 while (
y1 *
y2 > 0.) {
56 double y =
cdf(
x) - qq;
87 typedef std::multimap<double, double, std::greater<double> > StartMap;
95 typedef std::multimap<double, double, std::greater<double> > ResultMap;
97 for (StartMap::const_iterator
i = xStart.begin();
i != xStart.end();
i++) {
99 xFound.insert(std::pair<double, double>(
pdf(
x),
x));
110 return xFound.begin()->second;
119 double y2(
pdf(xStart));
120 double yd(
dpdf1(xStart));
122 if ((
y1 +
y2) < 10 * DBL_MIN)
124 while (nLoop++ < 20 && fabs(
y2 -
y1) / (
y2 +
y1) > 1.
e-6) {
127 if (fabs(yd2) < 10 * DBL_MIN)
176 double d((
x -
mean) / sigma);
184 return TMath::Freq((
x -
mean) / sigma);
202 return 1. / (
sqrt(s0));
245 return (x2f - x1f) / 2;
255 while (
cdf(
x) > .1 && cnt < 1000) {
269 while (
cdf(
x) < .9 && cnt < 1000) {
double findMode(const double) const
double cdf(const double &) const
value of integral(pdf)
double gauss(const double &, const double &, const double &) const
value of gaussian distribution
float errorHighestWeight() const
float quantile(const float) const
double combinedMean() const
mean value of combined state
double dpdf1(const double &) const
first derivative of pdf
const std::complex< double > I
double dpdf2(const double &) const
second derivative of pdf
double pdf(const double &) const
value of the pdf
T mod(const T &a, const T &b)
double gaussInt(const double &, const double &, const double &) const
integrated value of gaussian distribution
double errorCombinedMean() const