#include <f.h>
Public Member Functions | |
f_distribution (double v1=1.0, double v2=1.0) | |
double | cdf (double x) const |
double | inverse_cdf (double p) const |
double | denominator_degrees_of_freedom () const |
void | denominator_degrees_of_freedom (double df) |
double | numerator_degrees_of_freedom () const |
void | numerator_degrees_of_freedom (double df) |
References:
NUM_NAMESPACE_BEGIN f_distribution::f_distribution | ( | double | dfn = 1.0 , |
|
double | dfd = 1.0 | |||
) |
Create a distribution with the given numerator degrees of freedom and denominator degrees of freedom.
v1 | the numerator degrees of freedom. | |
v2 | the denominator degrees of freedom. |
dfn | the numerator degrees of freedom. | |
dfd | the denominator degrees of freedom. |
double f_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 f_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 f_distribution::denominator_degrees_of_freedom | ( | ) | const |
Access the denominator degrees of freedom.
void f_distribution::denominator_degrees_of_freedom | ( | double | df | ) |
Modify the denominator degrees of freedom.
df | the new denominator degrees of freedom. |
double f_distribution::numerator_degrees_of_freedom | ( | ) | const |
Access the numerator degrees of freedom.
void f_distribution::numerator_degrees_of_freedom | ( | double | df | ) |
Modify the numerator degrees of freedom.
df | the new numerator degrees of freedom. |