GaussianDist Class Reference
Gaussian distribution.
More...
#include <XeStat.h>
List of all members.
Public Member Functions |
double | cdf (double x) |
| return the cumulated distribution function
|
| GaussianDist (double mu, double sigma) |
| Regular constructor.
|
| GaussianDist () |
| Empty constructor for ROOT.
|
double | generate () |
| generate a pseudo random variable according to this distribution
|
double | logPdf (double x) |
| returns logs of probability density function
|
double | pdf (double x) |
| return the normalized probability distribution function
|
void | setMu (double mu) |
| Set the aveage.
|
void | setSigma (double sigma) |
| Set the standard deviation.
|
Static Public Member Functions |
static double | above (double nSigmas) |
| Compute the fraction of the distribution above n Sigmas.
|
static double | below (double nSigmas) |
| Compute the fraction of the distribution below n Sigmas.
|
static double | generate (double m, double sig) |
static double | inside (double Xmin, double Xmax, double sigma=1.) |
| Compute the fraction of the distribution between Xmin and Xmax.
|
static double | logPdf (double x, double mean, double sigma) |
Protected Attributes |
double | mu |
double | sigma |
Detailed Description
Gaussian distribution.
Constructor & Destructor Documentation
GaussianDist::GaussianDist |
( |
double |
mu, |
|
|
double |
sigma | |
|
) |
| | |
Regular constructor.
- Parameters:
-
Member Function Documentation
double GaussianDist::cdf |
( |
double |
x |
) |
[virtual] |
return the cumulated distribution function
- Parameters:
-
Implements XeDist.
static double GaussianDist::inside |
( |
double |
Xmin, |
|
|
double |
Xmax, |
|
|
double |
sigma = 1. | |
|
) |
| | [static] |
Compute the fraction of the distribution between Xmin and Xmax.
- Parameters:
-
| Xmin | lower bound of the integral |
| Xmax | upper bound of the integral |
| sigma | std of the distribution (default is 1.) |
double GaussianDist::logPdf |
( |
double |
x |
) |
[virtual] |
returns logs of probability density function
- Returns:
- Log of probability density function
- Parameters:
-
| x | Point at which is it evaluated |
Reimplemented from XeDist.
double GaussianDist::pdf |
( |
double |
x |
) |
[virtual] |
return the normalized probability distribution function
- Parameters:
-
Implements XeDist.
The documentation for this class was generated from the following file:
- /home/lellouch/Dropbox/Xenon/Xephyr/XeStat.h