itkTDistribution.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkTDistribution_h
00018 #define __itkTDistribution_h
00019
00020 #include "itkProbabilityDistribution.h"
00021 #include "itkNumericTraits.h"
00022
00023 namespace itk {
00024 namespace Statistics {
00025
00054 class ITK_EXPORT TDistribution :
00055 public ProbabilityDistribution
00056 {
00057 public:
00059 typedef TDistribution Self;
00060 typedef ProbabilityDistribution Superclass;
00061 typedef SmartPointer<Self> Pointer;
00062 typedef SmartPointer<const Self> ConstPointer;
00063
00065 itkTypeMacro(TDistribution, ProbabilityDistribution);
00066
00068 itkNewMacro(Self);
00069
00072 virtual unsigned long GetNumberOfParameters() const { return 1; }
00073
00076 virtual double EvaluatePDF(double x) const;
00077
00081 virtual double EvaluatePDF(double x, const ParametersType&) const;
00082
00085 virtual double EvaluatePDF(double x, long degreesOfFreedom) const;
00086
00089 virtual double EvaluateCDF(double x) const;
00090
00094 virtual double EvaluateCDF(double x, const ParametersType&) const;
00095
00098 virtual double EvaluateCDF(double x, long degreesOfFreedom) const;
00099
00103 virtual double EvaluateInverseCDF(double p) const;
00104
00109 virtual double EvaluateInverseCDF(double p, const ParametersType&) const;
00110
00114 virtual double EvaluateInverseCDF(double p, long degreesOfFreedom) const;
00115
00118 virtual void SetDegreesOfFreedom(long);
00119
00122 virtual long GetDegreesOfFreedom() const;
00123
00125 virtual bool HasMean() const { return true; }
00126
00128 virtual double GetMean() const;
00129
00132 virtual bool HasVariance() const;
00133
00136 virtual double GetVariance() const;
00137
00138
00144 static double PDF(double x, const ParametersType&);
00145
00150 static double PDF(double x, long degreesOfFreedom);
00151
00161 static double CDF(double x, const ParametersType&);
00162
00171 static double CDF(double x, long degreesOfFreedom);
00172
00183 static double InverseCDF(double p, const ParametersType&);
00184
00195 static double InverseCDF(double p, long degreesOfFreedom);
00196
00197 protected:
00198 TDistribution(void);
00199 virtual ~TDistribution(void) {}
00200
00201 void PrintSelf(std::ostream& os, Indent indent) const;
00202
00203 private:
00204 TDistribution(const Self&);
00205 void operator=(const Self&);
00206
00207 };
00208
00209 }
00210 }
00211
00212 #endif
00213