ITK  4.6.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 
27 namespace itk
28 {
29 namespace Statistics
30 {
58 {
59 public:
64 
67 
69  itkNewMacro(Self);
70 
74 
77 
80  typedef std::vector< PriorProbabilityValueType > PriorProbabilityVectorType;
81  typedef PriorProbabilityVectorType::size_type PriorProbabilityVectorSizeType;
82 
90  virtual ClassIdentifierType Evaluate(const MembershipVectorType & discriminantScores) const ITK_OVERRIDE;
91 
97 
99  itkGetConstReferenceMacro(PriorProbabilities, PriorProbabilityVectorType);
100 
101 protected:
104  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
105 
106 private:
107  MaximumRatioDecisionRule(const Self &); //purposely not implemented
108  void operator=(const Self &); //purposely not implemented
109 
111 
112 }; // end of class
113 } // end of Statistics namespace
114 } // end of ITK namespace
115 #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...
void SetPriorProbabilities(const PriorProbabilityVectorType &p)
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
virtual ClassIdentifierType Evaluate(const MembershipVectorType &discriminantScores) const ITK_OVERRIDE
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE