ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
itk::Statistics::MembershipFunctionBase< TVector > Class Template Referenceabstract

#include <itkMembershipFunctionBase.h>

+ Inheritance diagram for itk::Statistics::MembershipFunctionBase< TVector >:
+ Collaboration diagram for itk::Statistics::MembershipFunctionBase< TVector >:

Detailed Description

template<typename TVector>
class itk::Statistics::MembershipFunctionBase< TVector >

MembershipFunctionBase defines common interfaces for membership functions.

MembershipFunctionBase is a subclass of FunctionBase which restricts the function type to be a membership function. Membership functions provide a mapping from an arbitrary domain to a set of real numbers. Membership functions are typically used to model or approximate likelihood functions, $p( x | i )$, i.e. the probability of the measurement $x$ belonging to a class $i$.

The Statistics framework models random variables $x$ as vectors. Typical uses of MembershipFunctions include templating over a FixedArray, Array, Vector, or VariableLengthVector.

The Evaluate() method returns the membership rank or likelihood that the measurement belongs to the class represented by this membership function.

Evaluations of a single measurement across of set MembershipFunctions can then be passed to a DecisionRule in order to establish class (or group) assignment.

Definition at line 57 of file itkMembershipFunctionBase.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef unsigned int MeasurementVectorSizeType
 
typedef TVector MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef MembershipFunctionBase Self
 
typedef FunctionBase< TVector,
double > 
Superclass
 
- Public Types inherited from itk::FunctionBase< TVector, double >
typedef SmartPointer< const SelfConstPointer
 
typedef TVector InputType
 
typedef double OutputType
 
typedef SmartPointer< SelfPointer
 
typedef FunctionBase Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual double Evaluate (const MeasurementVectorType &x) const =0
 
virtual MeasurementVectorSizeType GetMeasurementVectorSize () const
 
virtual const char * GetNameOfClass () const
 
virtual void SetMeasurementVectorSize (MeasurementVectorSizeType s)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual LightObject::Pointer CreateAnother () const ITK_OVERRIDE
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const ITK_OVERRIDE
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Protected Member Functions

 MembershipFunctionBase ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~MembershipFunctionBase (void)
 
- Protected Member Functions inherited from itk::FunctionBase< TVector, double >
 FunctionBase ()
 
 ~FunctionBase ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

 MembershipFunctionBase (const Self &)
 
void operator= (const Self &)
 

Private Attributes

MeasurementVectorSizeType m_MeasurementVectorSize
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 
- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Member Typedef Documentation

template<typename TVector>
typedef SmartPointer< const Self > itk::Statistics::MembershipFunctionBase< TVector >::ConstPointer

Definition at line 65 of file itkMembershipFunctionBase.h.

template<typename TVector>
typedef unsigned int itk::Statistics::MembershipFunctionBase< TVector >::MeasurementVectorSizeType

Typedef for the length of each measurement vector

Definition at line 74 of file itkMembershipFunctionBase.h.

template<typename TVector>
typedef TVector itk::Statistics::MembershipFunctionBase< TVector >::MeasurementVectorType

MeasurementVector typedef support

Definition at line 68 of file itkMembershipFunctionBase.h.

template<typename TVector>
typedef SmartPointer< Self > itk::Statistics::MembershipFunctionBase< TVector >::Pointer

Definition at line 64 of file itkMembershipFunctionBase.h.

template<typename TVector>
typedef MembershipFunctionBase itk::Statistics::MembershipFunctionBase< TVector >::Self

Standard class typedefs

Definition at line 62 of file itkMembershipFunctionBase.h.

template<typename TVector>
typedef FunctionBase< TVector, double > itk::Statistics::MembershipFunctionBase< TVector >::Superclass

Definition at line 63 of file itkMembershipFunctionBase.h.

Constructor & Destructor Documentation

template<typename TVector>
itk::Statistics::MembershipFunctionBase< TVector >::MembershipFunctionBase ( )
inlineprotected

Definition at line 128 of file itkMembershipFunctionBase.h.

template<typename TVector>
virtual itk::Statistics::MembershipFunctionBase< TVector >::~MembershipFunctionBase ( void  )
inlineprotectedvirtual

Definition at line 134 of file itkMembershipFunctionBase.h.

template<typename TVector>
itk::Statistics::MembershipFunctionBase< TVector >::MembershipFunctionBase ( const Self )
private

Member Function Documentation

template<typename TVector>
virtual double itk::Statistics::MembershipFunctionBase< TVector >::Evaluate ( const MeasurementVectorType x) const
pure virtual

Method to get membership score (discriminant score) of an entity or measurement. Evaluate() maps from a vector measurement type to a real number.

Implements itk::FunctionBase< TVector, double >.

Implemented in itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >, itk::Statistics::GaussianMembershipFunction< TMeasurementVector >, and itk::Statistics::DistanceToCentroidMembershipFunction< TVector >.

template<typename TVector>
virtual MeasurementVectorSizeType itk::Statistics::MembershipFunctionBase< TVector >::GetMeasurementVectorSize ( ) const
virtual

Get the length of the measurement vector

template<typename TVector>
virtual const char* itk::Statistics::MembershipFunctionBase< TVector >::GetNameOfClass ( ) const
virtual
template<typename TVector>
void itk::Statistics::MembershipFunctionBase< TVector >::operator= ( const Self )
private
template<typename TVector>
void itk::Statistics::MembershipFunctionBase< TVector >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
inlineprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Object.

Definition at line 136 of file itkMembershipFunctionBase.h.

template<typename TVector>
virtual void itk::Statistics::MembershipFunctionBase< TVector >::SetMeasurementVectorSize ( MeasurementVectorSizeType  s)
inlinevirtual

Set the length of the measurement vector. If this membership function is templated over a vector type that can be resized, the new size is set. If the vector type has a fixed size and an attempt is made to change its size, an exception is thrown. Subclasses may have to override this method if a change in vector size requires invalidating other instance variables, e.g. covariance matrices, mean vectors, etc.

Definition at line 88 of file itkMembershipFunctionBase.h.

Member Data Documentation

template<typename TVector>
MeasurementVectorSizeType itk::Statistics::MembershipFunctionBase< TVector >::m_MeasurementVectorSize
private

The documentation for this class was generated from the following file: