BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Probability density functions of various statistical distributions (continuous and discrete). The probability density function returns the probability that the variate has the value x. In statistics the PDF is also called the frequency function.
Probability Density Functions from MathCore | |
Additional PDF's are provided in the MathMore library (see PDF functions from MathMore) | |
double | ROOT::Math::beta_pdf (double x, double a, double b) |
double | ROOT::Math::binomial_pdf (unsigned int k, double p, unsigned int n) |
double | ROOT::Math::negative_binomial_pdf (unsigned int k, double p, double n) |
double | ROOT::Math::breitwigner_pdf (double x, double gamma, double x0=0) |
double | ROOT::Math::cauchy_pdf (double x, double b=1, double x0=0) |
double | ROOT::Math::chisquared_pdf (double x, double r, double x0=0) |
double | ROOT::Math::crystalball_function (double x, double alpha, double n, double sigma, double x0=0) |
double | ROOT::Math::exponential_pdf (double x, double lambda, double x0=0) |
double | ROOT::Math::fdistribution_pdf (double x, double n, double m, double x0=0) |
double | ROOT::Math::gamma_pdf (double x, double alpha, double theta, double x0=0) |
double | ROOT::Math::gaussian_pdf (double x, double sigma=1, double x0=0) |
double | ROOT::Math::bigaussian_pdf (double x, double y, double sigmax=1, double sigmay=1, double rho=0, double x0=0, double y0=0) |
double | ROOT::Math::landau_pdf (double x, double xi=1, double x0=0) |
double | ROOT::Math::lognormal_pdf (double x, double m, double s, double x0=0) |
double | ROOT::Math::normal_pdf (double x, double sigma=1, double x0=0) |
double | ROOT::Math::poisson_pdf (unsigned int n, double mu) |
double | ROOT::Math::tdistribution_pdf (double x, double r, double x0=0) |
double | ROOT::Math::uniform_pdf (double x, double a, double b, double x0=0) |
double | ROOT::Math::crystalball_pdf (double x, double alpha, double n, double sigma, double x0=0) |
double ROOT::Math::beta_pdf | ( | double | x, |
double | a, | ||
double | b | ||
) |
Probability density function of the beta distribution.
for . For detailed description see Mathworld.
double ROOT::Math::bigaussian_pdf | ( | double | x, |
double | y, | ||
double | sigmax = 1 , |
||
double | sigmay = 1 , |
||
double | rho = 0 , |
||
double | x0 = 0 , |
||
double | y0 = 0 |
||
) |
Probability density function of the bi-dimensional (Gaussian) distribution.
For detailed description see Mathworld. It can also be evaluated using normal_pdf which will call the same implementation.
rho | correlation , must be between -1,1 |
double ROOT::Math::binomial_pdf | ( | unsigned int | k, |
double | p, | ||
unsigned int | n | ||
) |
Probability density function of the binomial distribution.
for . For detailed description see Mathworld.
double ROOT::Math::breitwigner_pdf | ( | double | x, |
double | gamma, | ||
double | x0 = 0 |
||
) |
Probability density function of Breit-Wigner distribution, which is similar, just a different definition of the parameters, to the Cauchy distribution (see cauchy_pdf )
double ROOT::Math::cauchy_pdf | ( | double | x, |
double | b = 1 , |
||
double | x0 = 0 |
||
) |
Probability density function of the Cauchy distribution which is also called Lorentzian distribution.
For detailed description see Mathworld. It is also related to the breitwigner_pdf which will call the same implementation.
double ROOT::Math::chisquared_pdf | ( | double | x, |
double | r, | ||
double | x0 = 0 |
||
) |
Probability density function of the distribution with
degrees of freedom.
for . For detailed description see Mathworld.
double ROOT::Math::crystalball_function | ( | double | x, |
double | alpha, | ||
double | n, | ||
double | sigma, | ||
double | x0 = 0 |
||
) |
double ROOT::Math::crystalball_pdf | ( | double | x, |
double | alpha, | ||
double | n, | ||
double | sigma, | ||
double | x0 = 0 |
||
) |
pdf definition of the crystal_ball which is defined only for n > 1 otherwise integral is diverging
double ROOT::Math::exponential_pdf | ( | double | x, |
double | lambda, | ||
double | x0 = 0 |
||
) |
Probability density function of the exponential distribution.
for x>0. For detailed description see Mathworld.
double ROOT::Math::fdistribution_pdf | ( | double | x, |
double | n, | ||
double | m, | ||
double | x0 = 0 |
||
) |
Probability density function of the F-distribution.
for x>=0. For detailed description see Mathworld.
double ROOT::Math::gamma_pdf | ( | double | x, |
double | alpha, | ||
double | theta, | ||
double | x0 = 0 |
||
) |
Probability density function of the gamma distribution.
for x>0. For detailed description see Mathworld.
double ROOT::Math::gaussian_pdf | ( | double | x, |
double | sigma = 1 , |
||
double | x0 = 0 |
||
) |
Probability density function of the normal (Gaussian) distribution.
For detailed description see Mathworld. It can also be evaluated using normal_pdf which will call the same implementation.
double ROOT::Math::landau_pdf | ( | double | x, |
double | xi = 1 , |
||
double | x0 = 0 |
||
) |
Probability density function of the Landau distribution:
with
where . For a detailed description see K.S. Kölbig and B. Schorr, A program package for the Landau distribution, Computer Phys. Comm. 31 (1984) 97-111 [Erratum-ibid. 178 (2008) 972]. The same algorithms as in CERNLIB (DENLAN) is used
x | The argument ![]() |
xi | The width parameter ![]() |
x0 | The location parameter ![]() |
double ROOT::Math::lognormal_pdf | ( | double | x, |
double | m, | ||
double | s, | ||
double | x0 = 0 |
||
) |
Probability density function of the lognormal distribution.
for x>0. For detailed description see Mathworld.
s | scale parameter (not the sigma of the distribution which is not even defined) |
x0 | location parameter, corresponds approximately to the most probable value. For x0 = 0, sigma = 1, the x_mpv = -0.22278 |
double ROOT::Math::negative_binomial_pdf | ( | unsigned int | k, |
double | p, | ||
double | n | ||
) |
double ROOT::Math::normal_pdf | ( | double | x, |
double | sigma = 1 , |
||
double | x0 = 0 |
||
) |
Probability density function of the normal (Gaussian) distribution.
For detailed description see Mathworld. It can also be evaluated using gaussian_pdf which will call the same implementation.
double ROOT::Math::poisson_pdf | ( | unsigned int | n, |
double | mu | ||
) |
double ROOT::Math::tdistribution_pdf | ( | double | x, |
double | r, | ||
double | x0 = 0 |
||
) |
Probability density function of Student's t-distribution.
for . For detailed description see Mathworld.
double ROOT::Math::uniform_pdf | ( | double | x, |
double | a, | ||
double | b, | ||
double | x0 = 0 |
||
) |
Probability density function of the uniform (flat) distribution.
if and 0 otherwise. For detailed description see Mathworld.