f_distribution Class Reference

#include <f.h>

Inheritance diagram for f_distribution:

continuous_distribution

List of all members.

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)


Detailed Description

The F distribution (1).

References:

  1. Eric W. Weisstein. "F Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/F-Distribution.html

Constructor & Destructor Documentation

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.

Parameters:
v1 the numerator degrees of freedom.
v2 the denominator degrees of freedom.
Create a distribution with the given numerator degrees of freedom and denominator degrees of freedom.
Parameters:
dfn the numerator degrees of freedom.
dfd the denominator degrees of freedom.


Member Function Documentation

double f_distribution::cdf ( double  x  )  const [virtual]

The CDF for this distribution. This method returns P(X < x).

Parameters:
x the value at which the CDF is evaluated.
Returns:
CDF for this distribution.

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.

Parameters:
p the cumulative probability.
Returns:
x

Implements continuous_distribution.

double f_distribution::denominator_degrees_of_freedom (  )  const

Access the denominator degrees of freedom.

Returns:
the denominator degrees of freedom.

void f_distribution::denominator_degrees_of_freedom ( double  df  ) 

Modify the denominator degrees of freedom.

Parameters:
df the new denominator degrees of freedom.

double f_distribution::numerator_degrees_of_freedom (  )  const

Access the numerator degrees of freedom.

Returns:
the numerator degrees of freedom.

void f_distribution::numerator_degrees_of_freedom ( double  df  ) 

Modify the numerator degrees of freedom.

Parameters:
df the new numerator degrees of freedom.


The documentation for this class was generated from the following files:
Generated on Wed Nov 21 22:22:15 2007 for numerics4c++ by  doxygen 1.5.3