39 while (
y1 *
y2 > 0.) {
54 double y =
cdf(
x) - qq;
85 typedef std::multimap<double, double, std::greater<double> > StartMap;
93 typedef std::multimap<double, double, std::greater<double> > ResultMap;
95 for (StartMap::const_iterator
i = xStart.begin();
i != xStart.end();
i++) {
97 xFound.insert(std::pair<double, double>(
pdf(
x),
x));
108 return xFound.begin()->second;
117 double y2(
pdf(xStart));
118 double yd(
dpdf1(xStart));
120 if ((
y1 +
y2) < 10 * DBL_MIN)
122 while (nLoop++ < 20 && fabs(
y2 -
y1) / (
y2 +
y1) > 1.
e-6) {
125 if (fabs(yd2) < 10 * DBL_MIN)
174 double d((
x -
mean) / sigma);
182 return TMath::Freq((
x -
mean) / sigma);
200 return 1. / (
sqrt(s0));
243 return (x2f - x1f) / 2;
253 while (
cdf(
x) > .1 && cnt < 1000) {
267 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