18 #ifndef __itkProbabilityDistribution_h
19 #define __itkProbabilityDistribution_h
102 if ( ( params.
GetSize() != m_Parameters.GetSize() )
103 || ( params != m_Parameters ) )
105 m_Parameters = params;
113 virtual double EvaluatePDF(
double x)
const = 0;
118 virtual double EvaluatePDF(
double x,
const ParametersType &)
const = 0;
123 virtual double EvaluateCDF(
double x)
const = 0;
128 virtual double EvaluateCDF(
double x,
const ParametersType &)
const = 0;
134 virtual double EvaluateInverseCDF(
double p)
const = 0;
140 virtual double EvaluateInverseCDF(
double p,
const ParametersType &)
const = 0;
143 virtual bool HasMean()
const = 0;
146 virtual bool HasVariance()
const = 0;
150 virtual double GetMean()
const = 0;
154 virtual double GetVariance()
const = 0;
159 void PrintSelf(std::ostream & os,
Indent indent)
const
161 Superclass::PrintSelf(os, indent);
162 os << indent <<
"Parameters: " << m_Parameters << std::endl;
168 void operator=(
const Self &);