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

itk::Statistics::GaussianDensityFunction< TMeasurementVector > Class Template Reference

GaussianDensityFunction class represents Gaussian Density Function. More...

#include <itkGaussianDensityFunction.h>

Inheritance diagram for itk::Statistics::GaussianDensityFunction< TMeasurementVector >:

Inheritance graph
[legend]
Collaboration diagram for itk::Statistics::GaussianDensityFunction< TMeasurementVector >:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

virtual const char * GetNameOfClass () const
Pointer New ()

[NOHEADER]

void SetMean (const MeanType *mean)
const MeanTypeGetMean () const
void SetCovariance (const CovarianceType *cov)
const CovarianceTypeGetCovariance () const
double Evaluate (const MeasurementVectorType &measurement) const
 GaussianDensityFunction (void)
virtual ~GaussianDensityFunction (void)
void PrintSelf (std::ostream &os, Indent indent) const

Public Types

typedef GaussianDensityFunction Self
typedef DensityFunction< TMeasurementVector > Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TMeasurementVector MeasurementVectorType
typedef Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
typedef Array< double > MeanType
typedef VariableSizeMatrix<
double > 
CovarianceType

Detailed Description

template<class TMeasurementVector>
class itk::Statistics::GaussianDensityFunction< TMeasurementVector >

GaussianDensityFunction class represents Gaussian Density Function.

This class keeps parameter to define Gaussian Density Function and has method to return the probability density of an instance (pattern) . If the all element of the covariance matrix is zero the "usual" density calculations ignored. if the measurement vector to be evaluated is equal to the mean, then the Evaluate method will return maximum value of double and return 0 for others

Recent API changes: The static const macro to get the length of a measurement vector, MeasurementVectorSize has been removed to allow the length of a measurement vector to be specified at run time. It is now obtained at run time from the sample set as input. Please use the function GetMeasurementVectorSize() to get the length. The typedef for the Mean has changed from FixedArray to Array. The typedef for the covariance matrix has changed from Matrix to VariableSizeMatrix.

Definition at line 55 of file itkGaussianDensityFunction.h.


Member Typedef Documentation

template<class TMeasurementVector>
typedef SmartPointer<const Self> itk::Statistics::GaussianDensityFunction< TMeasurementVector >::ConstPointer
 

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

Definition at line 63 of file itkGaussianDensityFunction.h.

template<class TMeasurementVector>
typedef VariableSizeMatrix< double > itk::Statistics::GaussianDensityFunction< TMeasurementVector >::CovarianceType
 

Type of the covariance matrix

Definition at line 80 of file itkGaussianDensityFunction.h.

Referenced by itk::Statistics::GaussianDensityFunction< TMeasurementVector >::GetMean(), and itk::Statistics::GaussianDensityFunction< TMeasurementVector >::~GaussianDensityFunction().

template<class TMeasurementVector>
typedef Array< double > itk::Statistics::GaussianDensityFunction< TMeasurementVector >::MeanType
 

Type of the mean vector

Definition at line 77 of file itkGaussianDensityFunction.h.

Referenced by itk::Statistics::GaussianDensityFunction< TMeasurementVector >::~GaussianDensityFunction().

template<class TMeasurementVector>
typedef Superclass::MeasurementVectorSizeType itk::Statistics::GaussianDensityFunction< TMeasurementVector >::MeasurementVectorSizeType
 

Length of each measurement vector

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

Definition at line 74 of file itkGaussianDensityFunction.h.

template<class TMeasurementVector>
typedef TMeasurementVector itk::Statistics::GaussianDensityFunction< TMeasurementVector >::MeasurementVectorType
 

Typedef alias for the measurement vectors

Definition at line 71 of file itkGaussianDensityFunction.h.

Referenced by itk::Statistics::GaussianDensityFunction< TMeasurementVector >::GetMean().

template<class TMeasurementVector>
typedef SmartPointer<Self> itk::Statistics::GaussianDensityFunction< TMeasurementVector >::Pointer
 

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

Definition at line 62 of file itkGaussianDensityFunction.h.

template<class TMeasurementVector>
typedef GaussianDensityFunction itk::Statistics::GaussianDensityFunction< TMeasurementVector >::Self
 

Standard class typedefs

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

Definition at line 60 of file itkGaussianDensityFunction.h.

template<class TMeasurementVector>
typedef DensityFunction< TMeasurementVector > itk::Statistics::GaussianDensityFunction< TMeasurementVector >::Superclass
 

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

Definition at line 61 of file itkGaussianDensityFunction.h.


Constructor & Destructor Documentation

template<class TMeasurementVector>
itk::Statistics::GaussianDensityFunction< TMeasurementVector >::GaussianDensityFunction void   )  [protected]
 

Sets the mean

template<class TMeasurementVector>
virtual itk::Statistics::GaussianDensityFunction< TMeasurementVector >::~GaussianDensityFunction void   )  [inline, protected, virtual]
 

Sets the mean

Definition at line 120 of file itkGaussianDensityFunction.h.

References itk::Statistics::GaussianDensityFunction< TMeasurementVector >::CovarianceType, and itk::Statistics::GaussianDensityFunction< TMeasurementVector >::MeanType.


Member Function Documentation

template<class TMeasurementVector>
double itk::Statistics::GaussianDensityFunction< TMeasurementVector >::Evaluate const MeasurementVectorType measurement  )  const
 

Gets the probability density of a measurement vector.

template<class TMeasurementVector>
const CovarianceType* itk::Statistics::GaussianDensityFunction< TMeasurementVector >::GetCovariance  )  const
 

Gets the covariance matrix

template<class TMeasurementVector>
const MeanType* itk::Statistics::GaussianDensityFunction< TMeasurementVector >::GetMean void   )  const [inline]
 

Gets the mean

Definition at line 104 of file itkGaussianDensityFunction.h.

References itk::Statistics::GaussianDensityFunction< TMeasurementVector >::CovarianceType, and itk::Statistics::GaussianDensityFunction< TMeasurementVector >::MeasurementVectorType.

template<class TMeasurementVector>
virtual const char* itk::Statistics::GaussianDensityFunction< TMeasurementVector >::GetNameOfClass  )  const [virtual]
 

Strandard macros

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

template<class TMeasurementVector>
Pointer itk::Statistics::GaussianDensityFunction< TMeasurementVector >::New  )  [static]
 

Strandard macros

Reimplemented from itk::Object.

template<class TMeasurementVector>
void itk::Statistics::GaussianDensityFunction< TMeasurementVector >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Sets the mean

Reimplemented from itk::Statistics::DensityFunction< TMeasurementVector >.

template<class TMeasurementVector>
void itk::Statistics::GaussianDensityFunction< TMeasurementVector >::SetCovariance const CovarianceType cov  ) 
 

Sets the covariance matrix. Also, this function calculates inverse covariance and pre factor of Gaussian Distribution to speed up GetProbability

template<class TMeasurementVector>
void itk::Statistics::GaussianDensityFunction< TMeasurementVector >::SetMean const MeanType mean  )  [inline]
 

Sets the mean

Definition at line 83 of file itkGaussianDensityFunction.h.

References itk::Array< double >::Size().


The documentation for this class was generated from the following file:
Generated at Thu May 25 03:04:27 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000