ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkProbabilityDistribution.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkProbabilityDistribution_h
19 #define itkProbabilityDistribution_h
20 
21 #include "itkIntTypes.h"
22 #include "itkObject.h"
23 #include "itkObjectFactory.h"
24 #include "itkArray.h"
25 #include "ITKStatisticsExport.h"
26 
27 namespace itk
28 {
29 namespace Statistics
30 {
72 class ITKStatistics_EXPORT ProbabilityDistribution:
73  public Object
74 {
75 public:
78  typedef Object Superclass;
81 
84 
87 
91  virtual SizeValueType GetNumberOfParameters() const = 0;
92 
96  itkGetConstReferenceMacro(Parameters, ParametersType);
97 
101  virtual void SetParameters(const ParametersType & params);
102 
105  virtual double EvaluatePDF(double x) const = 0;
106 
110  virtual double EvaluatePDF(double x, const ParametersType &) const = 0;
111 
115  virtual double EvaluateCDF(double x) const = 0;
116 
120  virtual double EvaluateCDF(double x, const ParametersType &) const = 0;
121 
126  virtual double EvaluateInverseCDF(double p) const = 0;
127 
132  virtual double EvaluateInverseCDF(double p, const ParametersType &) const = 0;
133 
135  virtual bool HasMean() const = 0;
136 
138  virtual bool HasVariance() const = 0;
139 
142  virtual double GetMean() const = 0;
143 
146  virtual double GetVariance() const = 0;
147 
148 protected:
150  virtual ~ProbabilityDistribution(void);
151  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
152 
154 
155 private:
156  ProbabilityDistribution(const Self &) ITK_DELETE_FUNCTION;
157  void operator=(const Self &) ITK_DELETE_FUNCTION;
158 }; // end of class
159 } // end of namespace Statistics
160 } // end namespace itk
161 
162 #endif
Light weight base class for most itk classes.
ProbabilityDistribution class defines common interface for statistical distributions (pdfs...
unsigned long SizeValueType
Definition: itkIntTypes.h:143
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:57