chi_squared_distribution Class Reference

#include <chisquared.h>

Inheritance diagram for chi_squared_distribution:

continuous_distribution

List of all members.

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)


Detailed Description

The Chi-Squared distribution (1).

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

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN chi_squared_distribution::chi_squared_distribution ( double  df = 1.0  ) 

Create a distribution with the given degrees of freedom.

Parameters:
df degrees of freedom.


Member Function Documentation

double chi_squared_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 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.

Parameters:
p the cumulative probability.
Returns:
x

Implements continuous_distribution.

double chi_squared_distribution::degrees_of_freedom (  )  const

Access the degrees of freedom.

Returns:
the degrees of freedom.

void chi_squared_distribution::degrees_of_freedom ( double  df  ) 

Modify the degrees of freedom.

Parameters:
df The new degrees of freedom value.


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