#include <exponential.h>
Public Member Functions | |
exponential_distribution (double mean=1.0) | |
double | cdf (double x) const |
double | inverse_cdf (double p) const |
double | mean () const |
void | mean (double mean) |
References:
NUM_NAMESPACE_BEGIN exponential_distribution::exponential_distribution | ( | double | m = 1.0 |
) |
Create a distribution with the given mean.
mean | the mean. |
m | the mean. |
double exponential_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 exponential_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 exponential_distribution::mean | ( | ) | const |
Access the mean.
void exponential_distribution::mean | ( | double | m | ) |
Modify the mean.
mean | the new mean value. |
m | the new mean value. |