#include <Distrfunc.hh>
Inheritance diagram for RazorBack::Gaussian_:
Public Methods | |
Gaussian_ (double M=0.0, double S=1.0) | |
default ctor: init to mean M, standard deviation S. More... | |
double | mu () const |
double | mu (double M) |
double | sigma () const |
double | sigma (double S) |
Sets the spread of the Gaussian, returns old value. More... | |
virtual double | pdf (double X) const |
Returns the PDF at X. | |
virtual double | cdf (double X) const |
Returns the CDF at X. | |
virtual double | inv_cdf (double Y) const |
Returns the inverse CDF, the value of X for which CDF(X)=Y. | |
virtual double | mean () const |
Returns the mean (this is the mu parameter). | |
virtual double | var () const |
Returns the variance (this is the squared sigma parameter). | |
virtual double | skew () const |
Returns the skewness of the distribution. | |
virtual double | kurt () const |
Returns the kurtosis of the distribution. | |
virtual double | entropy () const |
Returns the entropy. | |
virtual double | random () const |
Returns a random number from this normal distribution. | |
Static Protected Methods | |
double | cdf_std (double Z) |
double | invcdf_ratio (double P) |
Private Attributes | |
Randomnorm_ | Rand |
Gaussian random number generator. | |
Static Private Attributes | |
const double | SQRT_2PI |
const double | SQRT2 |
Definition at line 150 of file Distrfunc.hh.
|
default ctor: init to mean M, standard deviation S. Default values are for the standard normal distribution. Throws Badvalexc_ if S==0. If S<0.0 then the absolute value will be used. Definition at line 165 of file Distrfunc.hh. |
|
Definition at line 175 of file Distrfunc.hh. |
|
Definition at line 178 of file Distrfunc.hh. |
|
Definition at line 181 of file Distrfunc.hh. |
|
Sets the spread of the Gaussian, returns old value. Throws Badvalexc_ if S==0. If S<0.0 then the absolute value will be used. Definition at line 188 of file Distrfunc.hh. |
|
Returns the PDF at X.
Reimplemented from RazorBack::Distrbase_. |
|
Returns the CDF at X.
Reimplemented from RazorBack::Distrbase_. |
|
Returns the inverse CDF, the value of X for which CDF(X)=Y.
Reimplemented from RazorBack::Distrbase_. |
|
Returns the mean (this is the mu parameter).
Reimplemented from RazorBack::Distrbase_. Definition at line 206 of file Distrfunc.hh. |
|
Returns the variance (this is the squared sigma parameter).
Reimplemented from RazorBack::Distrbase_. Definition at line 209 of file Distrfunc.hh. Referenced by entropy(). |
|
Returns the skewness of the distribution.
Reimplemented from RazorBack::Distrbase_. Definition at line 212 of file Distrfunc.hh. |
|
Returns the kurtosis of the distribution.
Reimplemented from RazorBack::Distrbase_. Definition at line 215 of file Distrfunc.hh. |
|
Returns the entropy.
Reimplemented from RazorBack::Distrbase_. Definition at line 218 of file Distrfunc.hh. |
|
Returns a random number from this normal distribution.
Reimplemented from RazorBack::Distrbase_. Definition at line 224 of file Distrfunc.hh. |
|
|
|
|
|
Definition at line 153 of file Distrfunc.hh. |
|
Definition at line 153 of file Distrfunc.hh. |
|
Gaussian random number generator.
Definition at line 154 of file Distrfunc.hh. |