Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMembershipFunctionBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMembershipFunctionBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/11/21 02:40:49 $
00007   Version:   $Revision: 1.7 $
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 __itkMembershipFunctionBase_h
00018 #define __itkMembershipFunctionBase_h
00019 
00020 #include "itkFunctionBase.h"
00021 
00022 namespace itk{ 
00023 namespace Statistics{
00024 
00036 template< class TVector >
00037 class ITK_EXPORT MembershipFunctionBase :
00038     public FunctionBase< TVector, double >
00039 {
00040 public:
00042   typedef MembershipFunctionBase Self;
00043   typedef FunctionBase< TVector, double > Superclass ;
00044   typedef SmartPointer< Self > Pointer ;
00045   typedef SmartPointer<const Self> ConstPointer;
00046 
00048   itkTypeMacro(MembershipFunctionBase, FunctionBase);
00049 
00051   typedef unsigned int  MeasurementVectorSizeType;
00052 
00054   virtual double Evaluate(const TVector &x) const = 0 ;
00055   
00057   virtual void SetMeasurementVectorSize( const MeasurementVectorSizeType ) = 0;
00058   itkGetConstMacro( MeasurementVectorSize, MeasurementVectorSizeType ); 
00059  
00060 protected:
00061   MembershipFunctionBase(void) {}
00062   virtual ~MembershipFunctionBase(void) {}
00063 
00064   void PrintSelf(std::ostream& os, Indent indent) const
00065     { 
00066     Superclass::PrintSelf(os,indent) ; 
00067     os << indent << "Length of measurement vectors: " 
00068                 << m_MeasurementVectorSize << std::endl;
00069     }
00070 
00071   MeasurementVectorSizeType m_MeasurementVectorSize;
00072 } ; // end of class
00073 
00074 } // end of namespace Statistics
00075 } // end namespace itk
00076 
00077 #endif
00078 
00079 
00080 
00081 
00082 
00083 
00084 

Generated at Wed May 24 23:39:55 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000