t_distribution Class Reference

#include <t.h>

Inheritance diagram for t_distribution:

continuous_distribution

List of all members.

Public Member Functions

 t_distribution (double v=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

Student's t distribution (1).

References:

  1. Eric W. Weisstein. "t Distribution." From MathWorld--A Wolfram Web Resource. <a target="_blank" http://mathworld.wolfram.com/Studentst-Distribution.html"> http://mathworld.wolfram.com/Studentst-Distribution.html

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN t_distribution::t_distribution ( double  df = 1.0  ) 

Create a distribution with the given degrees of freedom.

Parameters:
v the degrees of freedom.
Create a distribution with the given degrees of freedom.
Parameters:
df the degrees of freedom.


Member Function Documentation

double t_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 t_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 t_distribution::degrees_of_freedom (  )  const

Access the degrees of freedom.

Returns:
the degrees of freedom.

void t_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:16 2007 for numerics4c++ by  doxygen 1.5.3