#include <uniform.h>

Public Member Functions | |
| uniform_distribution (double a=0.0, double b=1.0) | |
| double | cdf (double x) const |
| double | inverse_cdf (double p) const |
| double | lower () const |
| void | lower (double a) |
| double | upper () const |
| void | upper (double b) |
References:
| NUM_NAMESPACE_BEGIN uniform_distribution::uniform_distribution | ( | double | a = 0.0, |
|
| double | b = 1.0 | |||
| ) |
Create a distribution with the given lower bound and upper bound values.
| a | the lower bound parameter. | |
| b | the upper bound parameter. |
| a | the lower parameter. | |
| b | the upper parameter. |
| double uniform_distribution::cdf | ( | double | x | ) | const [virtual] |
The CDF for this distribution. This method returns P(X < x).
| x | the value at which the CDF is evaluated. |
Implements continuous_distribution.
| double uniform_distribution::inverse_cdf | ( | double | p | ) | const [virtual] |
The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.
| p | the cumulative probability. |
Implements continuous_distribution.
| double uniform_distribution::lower | ( | ) | const |
Access the lower bound parameter.
| void uniform_distribution::lower | ( | double | a | ) |
Modify the lower bound parameter.
| a | the new lower bound value. |
| double uniform_distribution::upper | ( | ) | const |
Access the upper bound parameter.
| void uniform_distribution::upper | ( | double | b | ) |
Modify the upper bound parameter.
| b | the new upper bound value. |
1.5.3