#include <lognormal.h>
Public Member Functions | |
log_normal_distribution (double mean=0.0, double std=1.0) | |
double | cdf (double x) const |
double | inverse_cdf (double p) const |
double | mean () const |
void | mean (double mean) |
double | standard_deviation () const |
void | standard_deviation (double std) |
References:
NUM_NAMESPACE_BEGIN log_normal_distribution::log_normal_distribution | ( | double | m = 0.0 , |
|
double | s = 1.0 | |||
) |
Create a distribution with the given mean and standard deviation.
mean | the mean. | |
std | the standard deviation. |
double log_normal_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 log_normal_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 log_normal_distribution::mean | ( | ) | const |
Access the mean.
void log_normal_distribution::mean | ( | double | m | ) |
Modify the mean.
mean | the new mean value. |
double log_normal_distribution::standard_deviation | ( | ) | const |
Access the standard deviation.
void log_normal_distribution::standard_deviation | ( | double | s | ) |
Modify the standard deviation.
std | The new standard deviation value. |