ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkChiSquareDistribution.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef ChiSquareDistribution | Self |
typedef ProbabilityDistribution | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual double | EvaluateCDF (double x) const |
virtual double | EvaluateCDF (double x, const ParametersType &) const |
virtual double | EvaluateCDF (double x, SizeValueType degreesOfFreedom) const |
virtual double | EvaluateInverseCDF (double p) const |
virtual double | EvaluateInverseCDF (double p, const ParametersType &) const |
virtual double | EvaluateInverseCDF (double p, SizeValueType degreesOfFreedom) const |
virtual double | EvaluatePDF (double x) const |
virtual double | EvaluatePDF (double x, const ParametersType &) const |
virtual double | EvaluatePDF (double x, SizeValueType degreesOfFreedom) const |
virtual SizeValueType | GetDegreesOfFreedom () const |
virtual double | GetMean () const |
virtual const char * | GetNameOfClass () const |
virtual SizeValueType | GetNumberOfParameters () const |
virtual double | GetVariance () const |
virtual bool | HasMean () const |
virtual bool | HasVariance () const |
virtual void | SetDegreesOfFreedom (SizeValueType) |
Static Public Member Functions | |
static double | CDF (double x, const ParametersType &) |
static double | CDF (double x, SizeValueType degreesOfFreedom) |
static double | InverseCDF (double p, const ParametersType &) |
static double | InverseCDF (double p, SizeValueType degreesOfFreedom) |
static Pointer | New () |
static double | PDF (double x, const ParametersType &) |
static double | PDF (double x, SizeValueType degreesOfFreedom) |
Protected Member Functions | |
ChiSquareDistribution (void) | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~ChiSquareDistribution (void) |
Private Member Functions | |
ChiSquareDistribution (const Self &) | |
void | operator= (const Self &) |
ChiSquareDistribution class defines the interface for a univariate Chi-Square distribution (pdfs, cdfs, etc.).
ChiSquareDistribution provides access to the probability density function (pdf), the cumulative distribution function (cdf), and the inverse cumulative distribution function for a Chi-Square distribution.
The EvaluatePDF(), EvaluateCDF, EvaluateInverseCDF() methods are all virtual, allowing algorithms to be written with an abstract interface to a distribution (with said distribution provided to the algorithm at run-time). Static methods, not requiring an instance of the distribution, are also provided. The static methods allow for optimized access to distributions when the distribution is known a priori to the algorithm.
ChiSquareDistributions are univariate. Multivariate versions may be provided under a separate superclass (since the parameters to the pdf and cdf would have to be vectors not scalars).
ChiSquareDistributions can be used for Chi-Square tests.
Definition at line 57 of file itkChiSquareDistribution.h.
typedef SmartPointer< const Self > itk::Statistics::ChiSquareDistribution::ConstPointer |
Reimplemented from itk::Statistics::ProbabilityDistribution.
Definition at line 65 of file itkChiSquareDistribution.h.
Reimplemented from itk::Statistics::ProbabilityDistribution.
Definition at line 64 of file itkChiSquareDistribution.h.
Standard class typedefs
Reimplemented from itk::Statistics::ProbabilityDistribution.
Definition at line 62 of file itkChiSquareDistribution.h.
Reimplemented from itk::Statistics::ProbabilityDistribution.
Definition at line 63 of file itkChiSquareDistribution.h.
itk::Statistics::ChiSquareDistribution::ChiSquareDistribution | ( | void | ) | [protected] |
virtual itk::Statistics::ChiSquareDistribution::~ChiSquareDistribution | ( | void | ) | [inline, protected, virtual] |
Definition at line 199 of file itkChiSquareDistribution.h.
itk::Statistics::ChiSquareDistribution::ChiSquareDistribution | ( | const Self & | ) | [private] |
static double itk::Statistics::ChiSquareDistribution::CDF | ( | double | x, |
const ParametersType & | |||
) | [static] |
Static method to evaluate the cumulative distribution function (cdf) of a Chi-Square with a specified number of degrees of freedom. The static method provides optimized access without requiring an instance of the class. The degrees of freedom are passed as a parameters vector.
This is based on Abramowitz and Stegun 26.7.1. Accuracy is approximately 10^-14.
static double itk::Statistics::ChiSquareDistribution::CDF | ( | double | x, |
SizeValueType | degreesOfFreedom | ||
) | [static] |
Static method to evaluate the cumulative distribution function (cdf) of a Chi-Square with a specified number of degrees of freedom. The static method provides optimized access without requiring an instance of the class.
This is based on Abramowitz and Stegun 26.7.1. Accuracy is approximately 10^-14.
virtual::itk::LightObject::Pointer itk::Statistics::ChiSquareDistribution::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual double itk::Statistics::ChiSquareDistribution::EvaluateCDF | ( | double | x | ) | const [virtual] |
Evaluate the cumulative distribution function (cdf). The parameters of the distribution are assigned via SetParameters().
Implements itk::Statistics::ProbabilityDistribution.
virtual double itk::Statistics::ChiSquareDistribution::EvaluateCDF | ( | double | x, |
const ParametersType & | |||
) | const [virtual] |
Evaluate the cumulative distribution function (cdf). The parameters for the distribution are passed as a parameters vector. The ordering of the parameters is (degreesOfFreedom).
Implements itk::Statistics::ProbabilityDistribution.
virtual double itk::Statistics::ChiSquareDistribution::EvaluateCDF | ( | double | x, |
SizeValueType | degreesOfFreedom | ||
) | const [virtual] |
Evaluate the cumulative distribution function (cdf). The parameters of the distribution are passed as separate parameters.
virtual double itk::Statistics::ChiSquareDistribution::EvaluateInverseCDF | ( | double | p | ) | const [virtual] |
Evaluate the inverse cumulative distribution function (inverse cdf). Parameter p must be between 0.0 and 1.0. The parameters of the distribution are assigned via SetParameters().
Implements itk::Statistics::ProbabilityDistribution.
virtual double itk::Statistics::ChiSquareDistribution::EvaluateInverseCDF | ( | double | p, |
const ParametersType & | |||
) | const [virtual] |
Evaluate the inverse cumulative distribution function (inverse cdf). Parameter p must be between 0.0 and 1.0. The parameters for the distribution are passed as a parameters vector. The ordering of the parameters is (degrees of freedom).
Implements itk::Statistics::ProbabilityDistribution.
virtual double itk::Statistics::ChiSquareDistribution::EvaluateInverseCDF | ( | double | p, |
SizeValueType | degreesOfFreedom | ||
) | const [virtual] |
Evaluate the inverse cumulative distribution function (inverse cdf). Parameter p must be between 0.0 and 1.0. The parameters of the distribution are passed as separate parameters.
virtual double itk::Statistics::ChiSquareDistribution::EvaluatePDF | ( | double | x | ) | const [virtual] |
Evaluate the probability density function (pdf). The parameters of the distribution are assigned via SetParameters().
Implements itk::Statistics::ProbabilityDistribution.
virtual double itk::Statistics::ChiSquareDistribution::EvaluatePDF | ( | double | x, |
const ParametersType & | |||
) | const [virtual] |
Evaluate the probability density function (pdf). The parameters for the distribution are passed as a parameters vector. The ordering of the parameters is (degrees of freedom).
Implements itk::Statistics::ProbabilityDistribution.
virtual double itk::Statistics::ChiSquareDistribution::EvaluatePDF | ( | double | x, |
SizeValueType | degreesOfFreedom | ||
) | const [virtual] |
Evaluate the probability density function (pdf). The parameters of the distribution are passed as separate parameters.
virtual SizeValueType itk::Statistics::ChiSquareDistribution::GetDegreesOfFreedom | ( | ) | const [virtual] |
Get the number of degrees of freedom in the t distribution. Defaults to 1
virtual double itk::Statistics::ChiSquareDistribution::GetMean | ( | ) | const [virtual] |
Get the mean of the distribution.
Implements itk::Statistics::ProbabilityDistribution.
virtual const char* itk::Statistics::ChiSquareDistribution::GetNameOfClass | ( | ) | const [virtual] |
Strandard macros
Reimplemented from itk::Statistics::ProbabilityDistribution.
virtual SizeValueType itk::Statistics::ChiSquareDistribution::GetNumberOfParameters | ( | ) | const [inline, virtual] |
Return the number of parameters. For a Chi-Square distribution, the number of parameters is 1 (degrees of freedom)
Implements itk::Statistics::ProbabilityDistribution.
Definition at line 75 of file itkChiSquareDistribution.h.
virtual double itk::Statistics::ChiSquareDistribution::GetVariance | ( | ) | const [virtual] |
Get the variance of the distribution.
Implements itk::Statistics::ProbabilityDistribution.
virtual bool itk::Statistics::ChiSquareDistribution::HasMean | ( | ) | const [inline, virtual] |
Does the Chi-Square distribution have a mean?
Implements itk::Statistics::ProbabilityDistribution.
Definition at line 128 of file itkChiSquareDistribution.h.
virtual bool itk::Statistics::ChiSquareDistribution::HasVariance | ( | ) | const [inline, virtual] |
Does the Chi-Square distribution have a variance?
Implements itk::Statistics::ProbabilityDistribution.
Definition at line 134 of file itkChiSquareDistribution.h.
static double itk::Statistics::ChiSquareDistribution::InverseCDF | ( | double | p, |
const ParametersType & | |||
) | [static] |
Static method to evaluate the inverse cumulative distribution function of a Chi-Square with a specified number of degrees of freedom. The static method provides optimized access without requiring an instance of the class. Parameter p must be between 0.0 and 1.0. The degrees of freedom are passed as a parameters vector.
This is based on Abramowitz and Stegun 26.7.5 followed by a few Newton iterations to improve the precision at low degrees of freedom. Accuracy is approximately 10^-10.
static double itk::Statistics::ChiSquareDistribution::InverseCDF | ( | double | p, |
SizeValueType | degreesOfFreedom | ||
) | [static] |
Static method to evaluate the inverse cumulative distribution function of a Chi-Square with a specified number of degrees of freedom. The static method provides optimized access without requiring an instance of the class. Parameter p must be between 0.0 and 1.0.
This is based on Abramowitz and Stegun 26.7.5 followed by a few Newton iterations to improve the precision at low degrees of freedom. Accuracy is approximately 10^-10.
static Pointer itk::Statistics::ChiSquareDistribution::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::Statistics::ChiSquareDistribution::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::Statistics::ProbabilityDistribution.
static double itk::Statistics::ChiSquareDistribution::PDF | ( | double | x, |
const ParametersType & | |||
) | [static] |
Static method to evaluate the probability density function (pdf) of a Chi-Square with a specified number of degrees of freedom. The static method provides optimized access without requiring an instance of the class. The degrees of freedom for the distribution are passed in a parameters vector.
static double itk::Statistics::ChiSquareDistribution::PDF | ( | double | x, |
SizeValueType | degreesOfFreedom | ||
) | [static] |
Static method to evaluate the probability density function (pdf) of a Chi-Square with a specified number of degrees of freedom. The static method provides optimized access without requiring an instance of the class.
void itk::Statistics::ChiSquareDistribution::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Statistics::ProbabilityDistribution.
virtual void itk::Statistics::ChiSquareDistribution::SetDegreesOfFreedom | ( | SizeValueType | ) | [virtual] |
Set the number of degrees of freedom in the Chi-Square distribution. Defaults to 1