#include <chisquared.h>
Public Member Functions | |
chi_squared_distribution (double df=1.0) | |
double | cdf (double x) const |
double | inverse_cdf (double p) const |
double | degrees_of_freedom () const |
void | degrees_of_freedom (double df) |
NUM_NAMESPACE_BEGIN chi_squared_distribution::chi_squared_distribution | ( | double | df = 1.0 |
) |
Create a distribution with the given degrees of freedom.
df | degrees of freedom. |
double chi_squared_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 chi_squared_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 chi_squared_distribution::degrees_of_freedom | ( | ) | const |
Access the degrees of freedom.
void chi_squared_distribution::degrees_of_freedom | ( | double | df | ) |
Modify the degrees of freedom.
df | The new degrees of freedom value. |