#include <beta.h>
Public Member Functions | |
beta_distribution (double alpha=1.0, double beta=1.0) | |
double | cdf (double x) const |
double | inverse_cdf (double p) const |
double | alpha () const |
void | alpha (double a) |
double | beta () const |
void | beta (double b) |
References:
NUM_NAMESPACE_BEGIN beta_distribution::beta_distribution | ( | double | a = 1.0 , |
|
double | b = 1.0 | |||
) |
Create a distribution with the given alpha and beta values.
alpha | the alpha parameter. | |
beta | the beta parameter. |
a | the alpha parameter. | |
b | the beta parameter. |
double beta_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 beta_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 beta_distribution::alpha | ( | ) | const |
Access the alpha parameter.
void beta_distribution::alpha | ( | double | a | ) |
Modify the alpha parameter.
a | the new alpha value. |
double beta_distribution::beta | ( | ) | const |
Access the beta parameter.
void beta_distribution::beta | ( | double | b | ) |
Modify the beta parameter.
b | the new beta value. |