00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMinimumDecisionRule2.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-06-15 12:40:37 $ 00007 Version: $Revision: 1.2 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkMinimumDecisionRule2_h 00018 #define __itkMinimumDecisionRule2_h 00019 00020 #include "itkDecisionRule.h" 00021 00022 namespace itk { 00023 namespace Statistics { 00024 00031 class ITK_EXPORT MinimumDecisionRule2 : public DecisionRule 00032 { 00033 public: 00035 typedef MinimumDecisionRule2 Self; 00036 typedef DecisionRule Superclass; 00037 typedef SmartPointer<Self> Pointer; 00038 typedef SmartPointer<const Self> ConstPointer; 00039 00041 itkTypeMacro(MinimumDecisionRule2, DecisionRule); 00042 00044 itkNewMacro(Self); 00045 00046 typedef Superclass::MembershipVectorType MembershipVectorType; 00047 00048 00053 virtual unsigned int Evaluate( const MembershipVectorType &discriminantScores) const; 00054 00055 00056 protected: 00057 MinimumDecisionRule2() {} 00058 virtual ~MinimumDecisionRule2() {} 00059 void PrintSelf(std::ostream& os, Indent indent) const; 00060 }; // end of class 00061 00062 } // end of namespace itk 00063 } // end of namespace Statistics 00064 00065 #endif 00066