ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkMaximumRatioDecisionRule.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 itkMaximumRatioDecisionRule_h
19 #define itkMaximumRatioDecisionRule_h
20 
21 #include <vector>
22 #include "vnl/vnl_matrix.h"
23 
24 #include "itkNumericTraits.h"
25 #include "itkDecisionRule.h"
26 #include "ITKStatisticsExport.h"
27 
28 namespace itk
29 {
30 namespace Statistics
31 {
58 class ITKStatistics_EXPORT MaximumRatioDecisionRule : public DecisionRule
59 {
60 public:
65 
68 
70  itkNewMacro(Self);
71 
74  typedef Superclass::MembershipVectorType MembershipVectorType;
75 
77  typedef Superclass::ClassIdentifierType ClassIdentifierType;
78 
81  typedef std::vector< PriorProbabilityValueType > PriorProbabilityVectorType;
82  typedef PriorProbabilityVectorType::size_type PriorProbabilityVectorSizeType;
83 
91  virtual ClassIdentifierType Evaluate(const MembershipVectorType & discriminantScores) const ITK_OVERRIDE;
92 
97  void SetPriorProbabilities(const PriorProbabilityVectorType& p);
98 
100  itkGetConstReferenceMacro(PriorProbabilities, PriorProbabilityVectorType);
101 
102 protected:
105  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
106 
107 private:
108  MaximumRatioDecisionRule(const Self &); //purposely not implemented
109  void operator=(const Self &); //purposely not implemented
110 
112 
113 }; // end of class
114 } // end of Statistics namespace
115 } // end of ITK namespace
116 #endif
PriorProbabilityVectorType::size_type PriorProbabilityVectorSizeType
Light weight base class for most itk classes.
Superclass::MembershipValueType MembershipValueType
Base class for decision rules that return a class label based on a set of discriminant scores...
A decision rule that operates as a frequentist&#39;s approximation to Bayes rule.
Superclass::ClassIdentifierType ClassIdentifierType
Superclass::MembershipVectorType MembershipVectorType
MembershipVectorType::size_type ClassIdentifierType
std::vector< MembershipValueType > MembershipVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
std::vector< PriorProbabilityValueType > PriorProbabilityVectorType