#include <Distrfunc.hh>
Inheritance diagram for RazorBack::Uniform_:
Public Methods | |
Uniform_ (double Low=0.0, double Up=1.0) | |
init to range Low...Up. | |
double | low () const |
Returns the lower limit of the range. | |
double | low (double L) |
Sets the lower limit to L, returns old lower limit. | |
double | up () const |
Returns the upper limit of the range. | |
double | up (double U) |
Sets the upper limit to U, returns old upper limit. | |
virtual double | pdf (double X) const |
Calculates the PDF at X. | |
virtual double | cdf (double X) const |
Calculates the CDF at X. | |
virtual double | inv_cdf (double Y) const |
Calculates the inverse CDF, returns X where CDF(X)=Y. | |
virtual double | mean () const |
Returns the mean. | |
virtual double | var () const |
Returns the variance. | |
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 uniform distribution. | |
Private Attributes | |
Randomuni_ | Rand |
uniform random number generator. | |
double | Range |
upper-lower limit. |
Definition at line 76 of file Distrfunc.hh.
|
init to range Low...Up.
|
|
Returns the lower limit of the range.
Definition at line 89 of file Distrfunc.hh. |
|
Sets the lower limit to L, returns old lower limit.
Definition at line 92 of file Distrfunc.hh. |
|
Returns the upper limit of the range.
Definition at line 98 of file Distrfunc.hh. |
|
Sets the upper limit to U, returns old upper limit.
Definition at line 101 of file Distrfunc.hh. |
|
Calculates the PDF at X.
Reimplemented from RazorBack::Distrbase_. Definition at line 107 of file Distrfunc.hh. |
|
Calculates the CDF at X.
Reimplemented from RazorBack::Distrbase_. Definition at line 114 of file Distrfunc.hh. |
|
Calculates the inverse CDF, returns X where CDF(X)=Y.
Reimplemented from RazorBack::Distrbase_. Definition at line 122 of file Distrfunc.hh. |
|
Returns the mean.
Reimplemented from RazorBack::Distrbase_. Definition at line 130 of file Distrfunc.hh. |
|
Returns the variance.
Reimplemented from RazorBack::Distrbase_. Definition at line 133 of file Distrfunc.hh. |
|
Returns the skewness of the distribution.
Reimplemented from RazorBack::Distrbase_. Definition at line 136 of file Distrfunc.hh. |
|
Returns the kurtosis of the distribution.
Reimplemented from RazorBack::Distrbase_. Definition at line 139 of file Distrfunc.hh. |
|
Returns the entropy.
Reimplemented from RazorBack::Distrbase_. Definition at line 142 of file Distrfunc.hh. |
|
Returns a random number from this uniform distribution.
Reimplemented from RazorBack::Distrbase_. Definition at line 145 of file Distrfunc.hh. |
|
uniform random number generator.
Definition at line 79 of file Distrfunc.hh. |
|
upper-lower limit.
Definition at line 80 of file Distrfunc.hh. |