ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkMaximumRatioDecisionRule.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
28namespace itk::Statistics
29{
56
57class ITKStatistics_EXPORT MaximumRatioDecisionRule : public DecisionRule
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(MaximumRatioDecisionRule);
61
66
68 itkOverrideGetNameOfClassMacro(MaximumRatioDecisionRule);
69
71 itkNewMacro(Self);
72
76
79
82 using PriorProbabilityVectorType = std::vector<PriorProbabilityValueType>;
83 using PriorProbabilityVectorSizeType = PriorProbabilityVectorType::size_type;
84
93 Evaluate(const MembershipVectorType & discriminantScores) const override;
94
99 void
101
103 itkGetConstReferenceMacro(PriorProbabilities, PriorProbabilityVectorType);
104
105protected:
107 ~MaximumRatioDecisionRule() override = default;
108 void
109 PrintSelf(std::ostream & os, Indent indent) const override;
110
111private:
113
114}; // end of class
115} // namespace itk::Statistics
116
117#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
MembershipVectorType::size_type ClassIdentifierType
std::vector< MembershipValueType > MembershipVectorType
PriorProbabilityVectorType::size_type PriorProbabilityVectorSizeType
ClassIdentifierType Evaluate(const MembershipVectorType &discriminantScores) const override
std::vector< PriorProbabilityValueType > PriorProbabilityVectorType
void PrintSelf(std::ostream &os, Indent indent) const override
void SetPriorProbabilities(const PriorProbabilityVectorType &p)
Superclass::MembershipVectorType MembershipVectorType