#include <rayleigh.h>
Public Member Functions | |
rayleigh_distribution (double scale=1.0) | |
double | cdf (double x) const |
double | inverse_cdf (double p) const |
double | scale () const |
void | scale (double b) |
References:
NUM_NAMESPACE_BEGIN rayleigh_distribution::rayleigh_distribution | ( | double | s = 1.0 |
) |
Create a distribution with the given scale value.
scale | the scale parameter. |
s | the scale parameter. |
double rayleigh_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 rayleigh_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 rayleigh_distribution::scale | ( | ) | const |
Access the scale parameter.
void rayleigh_distribution::scale | ( | double | s | ) |
Modify the scale parameter.
b | the new scale value. |