ITK  4.3.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::MahalanobisDistanceMetric< TVector > Class Template Reference

#include <itkMahalanobisDistanceMetric.h>

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

Detailed Description

template<class TVector>
class itk::Statistics::MahalanobisDistanceMetric< TVector >

MahalanobisDistanceMetric class computes a Mahalanobis distance given a mean and covariance.

See Also
DistanceMetric
EuclideanDistanceMetric
EuclideanSquareDistanceMetric

Definition at line 46 of file itkMahalanobisDistanceMetric.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef vnl_matrix< double > CovarianceMatrixType
 
typedef Superclass::OriginType MeanVectorType
 
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
 
typedef
Superclass::MeasurementVectorType 
MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef MahalanobisDistanceMetric Self
 
typedef DistanceMetric< TVector > Superclass
 
- Public Types inherited from itk::Statistics::DistanceMetric< TVector >
typedef SmartPointer< const SelfConstPointer
 
typedef unsigned int MeasurementVectorSizeType
 
typedef TVector MeasurementVectorType
 
typedef Array< double > OriginType
 
typedef SmartPointer< SelfPointer
 
typedef DistanceMetric 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

double Evaluate (const MeasurementVectorType &measurement) const
 
double Evaluate (const MeasurementVectorType &x1, const MeasurementVectorType &x2) const
 
virtual const
CovarianceMatrixType
GetCovariance ()
 
virtual double GetDoubleMax () const
 
virtual const
CovarianceMatrixType
GetInverseCovariance ()
 
const MeanVectorTypeGetMean () const
 
void SetCovariance (const CovarianceMatrixType &cov)
 
virtual void SetDoubleMax (double _arg)
 
void SetInverseCovariance (const CovarianceMatrixType &invcov)
 
void SetMean (const MeanVectorType &mean)
 
virtual void SetMeasurementVectorSize (MeasurementVectorSizeType)
 
virtual void SetEpsilon (double _arg)
 
virtual double GetEpsilon () const
 
- Public Member Functions inherited from itk::Statistics::DistanceMetric< TVector >
virtual MeasurementVectorSizeType GetMeasurementVectorSize () const
 
virtual const OriginTypeGetOrigin ()
 
void SetOrigin (const OriginType &x)
 

Protected Member Functions

 MahalanobisDistanceMetric (void)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~MahalanobisDistanceMetric (void)
 
- Protected Member Functions inherited from itk::Statistics::DistanceMetric< TVector >
 DistanceMetric ()
 
virtual ~DistanceMetric ()
 
- 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

void CalculateInverseCovariance ()
 

Private Attributes

CovarianceMatrixType m_Covariance
 
double m_DoubleMax
 
double m_Epsilon
 
CovarianceMatrixType m_InverseCovariance
 
MeanVectorType m_Mean
 
virtual const char * GetNameOfClass () const
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
static Pointer New ()
 

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)
 
- 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<class TVector >
typedef SmartPointer< const Self > itk::Statistics::MahalanobisDistanceMetric< TVector >::ConstPointer

Definition at line 54 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
typedef vnl_matrix< double > itk::Statistics::MahalanobisDistanceMetric< TVector >::CovarianceMatrixType

Type used for representing the covariance matrix

Definition at line 71 of file itkMahalanobisDistanceMetric.h.

Type used for representing the mean vector

Definition at line 68 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
typedef Superclass::MeasurementVectorSizeType itk::Statistics::MahalanobisDistanceMetric< TVector >::MeasurementVectorSizeType

Typedef to represent the length of measurement vectors

Definition at line 65 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
typedef Superclass::MeasurementVectorType itk::Statistics::MahalanobisDistanceMetric< TVector >::MeasurementVectorType

Typedef to represent the measurement vector type

Definition at line 58 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
typedef SmartPointer< Self > itk::Statistics::MahalanobisDistanceMetric< TVector >::Pointer

Definition at line 53 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
typedef MahalanobisDistanceMetric itk::Statistics::MahalanobisDistanceMetric< TVector >::Self

Standard class typedefs

Definition at line 51 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
typedef DistanceMetric< TVector > itk::Statistics::MahalanobisDistanceMetric< TVector >::Superclass

Definition at line 52 of file itkMahalanobisDistanceMetric.h.

Constructor & Destructor Documentation

template<class TVector >
itk::Statistics::MahalanobisDistanceMetric< TVector >::MahalanobisDistanceMetric ( void  )
protected
template<class TVector >
virtual itk::Statistics::MahalanobisDistanceMetric< TVector >::~MahalanobisDistanceMetric ( void  )
inlineprotectedvirtual

Definition at line 116 of file itkMahalanobisDistanceMetric.h.

Member Function Documentation

template<class TVector >
void itk::Statistics::MahalanobisDistanceMetric< TVector >::CalculateInverseCovariance ( )
private
template<class TVector >
virtual::itk::LightObject::Pointer itk::Statistics::MahalanobisDistanceMetric< TVector >::CreateAnother ( void  ) const
virtual

Strandard macros

Reimplemented from itk::Object.

template<class TVector >
double itk::Statistics::MahalanobisDistanceMetric< TVector >::Evaluate ( const MeasurementVectorType measurement) const
virtual

Method to get probability of an instance. The return value is the value of the density function, not probability.

Implements itk::Statistics::DistanceMetric< TVector >.

template<class TVector >
double itk::Statistics::MahalanobisDistanceMetric< TVector >::Evaluate ( const MeasurementVectorType x1,
const MeasurementVectorType x2 
) const
virtual

Gets the distance between x1 and x2.

Implements itk::Statistics::DistanceMetric< TVector >.

template<class TVector >
virtual const CovarianceMatrixType& itk::Statistics::MahalanobisDistanceMetric< TVector >::GetCovariance ( )
virtual

Method to get covariance matrix

template<class TVector >
virtual double itk::Statistics::MahalanobisDistanceMetric< TVector >::GetDoubleMax ( ) const
virtual
template<class TVector >
virtual double itk::Statistics::MahalanobisDistanceMetric< TVector >::GetEpsilon ( ) const
virtual

Set/Get tolerance values

template<class TVector >
virtual const CovarianceMatrixType& itk::Statistics::MahalanobisDistanceMetric< TVector >::GetInverseCovariance ( )
virtual

Method to get covariance matrix

template<class TVector >
const MeanVectorType& itk::Statistics::MahalanobisDistanceMetric< TVector >::GetMean ( ) const

Method to get mean

template<class TVector >
virtual const char* itk::Statistics::MahalanobisDistanceMetric< TVector >::GetNameOfClass ( ) const
virtual

Strandard macros

Reimplemented from itk::Statistics::DistanceMetric< TVector >.

template<class TVector >
static Pointer itk::Statistics::MahalanobisDistanceMetric< TVector >::New ( )
static

Strandard macros

template<class TVector >
void itk::Statistics::MahalanobisDistanceMetric< TVector >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

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::Statistics::DistanceMetric< TVector >.

template<class TVector >
void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetCovariance ( const CovarianceMatrixType cov)

Method to set covariance matrix Also, this function calculates inverse covariance and pre factor of MahalanobisDistance Distribution to speed up GetProbability

template<class TVector >
virtual void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetDoubleMax ( double  _arg)
virtual
template<class TVector >
virtual void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetEpsilon ( double  _arg)
virtual

Set/Get tolerance values

template<class TVector >
void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetInverseCovariance ( const CovarianceMatrixType invcov)

Method to set inverse covariance matrix

template<class TVector >
void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetMean ( const MeanVectorType mean)

Method to set mean

template<class TVector >
virtual void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetMeasurementVectorSize ( MeasurementVectorSizeType  )
virtual

Set the length of each measurement vector.

Reimplemented from itk::Statistics::DistanceMetric< TVector >.

Member Data Documentation

template<class TVector >
CovarianceMatrixType itk::Statistics::MahalanobisDistanceMetric< TVector >::m_Covariance
private

Definition at line 121 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
double itk::Statistics::MahalanobisDistanceMetric< TVector >::m_DoubleMax
private

Definition at line 128 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
double itk::Statistics::MahalanobisDistanceMetric< TVector >::m_Epsilon
private

Definition at line 127 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
CovarianceMatrixType itk::Statistics::MahalanobisDistanceMetric< TVector >::m_InverseCovariance
private

Definition at line 125 of file itkMahalanobisDistanceMetric.h.

template<class TVector >
MeanVectorType itk::Statistics::MahalanobisDistanceMetric< TVector >::m_Mean
private

Definition at line 120 of file itkMahalanobisDistanceMetric.h.


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