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

itk::Statistics::WeightedCovarianceCalculator< TSample > Class Template Reference

Calculates the covariance matrix of the target sample data where each measurement vector has an associated weight value. More...

#include <itkWeightedCovarianceCalculator.h>

Inheritance diagram for itk::Statistics::WeightedCovarianceCalculator:

Inheritance graph
[legend]
Collaboration diagram for itk::Statistics::WeightedCovarianceCalculator< TSample >:

Collaboration graph
[legend]
List of all members.

[NOHEADER]

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

Public Types

typedef WeightedCovarianceCalculator Self
typedef SampleAlgorithmBase<
TSample > 
Superclass
typedef SmartPointer< SelfPointer
typedef TSample::MeasurementVectorType MeasurementVectorType
typedef FunctionBase< MeasurementVectorType,
double > 
WeightFunctionType
typedef Matrix< double, itkGetStaticConstMacro(MeasurementVectorSize), itkGetStaticConstMacro(MeasurementVectorSize) OutputType )
typedef Vector< double, itkGetStaticConstMacro(MeasurementVectorSize) MeanType )
typedef Array< double > WeightArrayType

Public Methods

 itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize)
void SetWeights (WeightArrayType *array)
WeightArrayTypeGetWeights ()
void SetWeightFunction (WeightFunctionType *func)
WeightFunctionTypeGetWeightFunction ()
void GetMean ()
OutputTypeGetOutput ()
void SetMean (MeanType *mean)

Protected Methods

 WeightedCovarianceCalculator ()
virtual ~WeightedCovarianceCalculator ()
void PrintSelf (std::ostream &os, Indent indent) const
void GenerateData ()

Detailed Description

template<class TSample>
class itk::Statistics::WeightedCovarianceCalculator< TSample >

Calculates the covariance matrix of the target sample data where each measurement vector has an associated weight value.

See also:
CovarianceCalculator SampleAlgorithmBase

Definition at line 35 of file itkWeightedCovarianceCalculator.h.


Member Typedef Documentation

template<class TSample>
typedef Vector< double, itkGetStaticConstMacro(MeasurementVectorSize) itk::Statistics::WeightedCovarianceCalculator< TSample >::MeanType)
 

Mean (input) typedef

Definition at line 66 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef TSample::MeasurementVectorType itk::Statistics::WeightedCovarianceCalculator< TSample >::MeasurementVectorType
 

Measurement vector typedef

Definition at line 53 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef Matrix< double, itkGetStaticConstMacro(MeasurementVectorSize), itkGetStaticConstMacro(MeasurementVectorSize) itk::Statistics::WeightedCovarianceCalculator< TSample >::OutputType)
 

covarince matrix (output) typedef

Definition at line 62 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef SmartPointer<Self> itk::Statistics::WeightedCovarianceCalculator< TSample >::Pointer
 

Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.

Definition at line 42 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef WeightedCovarianceCalculator itk::Statistics::WeightedCovarianceCalculator< TSample >::Self
 

Standard class typedefs.

Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.

Definition at line 40 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef SampleAlgorithmBase< TSample > itk::Statistics::WeightedCovarianceCalculator< TSample >::Superclass
 

Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.

Definition at line 41 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef Array< double > itk::Statistics::WeightedCovarianceCalculator< TSample >::WeightArrayType
 

Array typedef for weights

Definition at line 69 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
typedef FunctionBase< MeasurementVectorType, double > itk::Statistics::WeightedCovarianceCalculator< TSample >::WeightFunctionType
 

Weight calculation function typedef

Definition at line 56 of file itkWeightedCovarianceCalculator.h.


Constructor & Destructor Documentation

template<class TSample>
itk::Statistics::WeightedCovarianceCalculator< TSample >::WeightedCovarianceCalculator   [protected]
 

template<class TSample>
virtual itk::Statistics::WeightedCovarianceCalculator< TSample >::~WeightedCovarianceCalculator   [protected, virtual]
 


Member Function Documentation

template<class TSample>
void itk::Statistics::WeightedCovarianceCalculator< TSample >::GenerateData   [protected, virtual]
 

Calculates the covariance and save it

Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.

template<class TSample>
virtual const char* itk::Statistics::WeightedCovarianceCalculator< TSample >::GetClassName   const [virtual]
 

Standard Macros

Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.

template<class TSample>
void itk::Statistics::WeightedCovarianceCalculator< TSample >::GetMean void    [inline]
 

Gets the mean

Definition at line 97 of file itkWeightedCovarianceCalculator.h.

template<class TSample>
OutputType* itk::Statistics::WeightedCovarianceCalculator< TSample >::GetOutput  
 

Returns the covariance matrix of the target sample data

template<class TSample>
WeightFunctionType* itk::Statistics::WeightedCovarianceCalculator< TSample >::GetWeightFunction  
 

Gets the weight function

template<class TSample>
WeightArrayType* itk::Statistics::WeightedCovarianceCalculator< TSample >::GetWeights  
 

Gets the weights array

template<class TSample>
itk::Statistics::WeightedCovarianceCalculator< TSample >::itkStaticConstMacro MeasurementVectorSize   ,
unsigned    int,
TSample::MeasurementVectorSize   
 

template<class TSample>
Pointer itk::Statistics::WeightedCovarianceCalculator< TSample >::New   [static]
 

Standard Macros

Reimplemented from itk::Statistics::SampleAlgorithmBase< TSample >.

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

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::SampleAlgorithmBase< TSample >.

template<class TSample>
void itk::Statistics::WeightedCovarianceCalculator< TSample >::SetMean MeanType   mean [inline]
 

Sets the mean (input)

Definition at line 86 of file itkWeightedCovarianceCalculator.h.

References itk::Object::Modified().

template<class TSample>
void itk::Statistics::WeightedCovarianceCalculator< TSample >::SetWeightFunction WeightFunctionType   func
 

Sets the wiehts using an function the function should have a method, Evaluate(MeasurementVectorType&)

template<class TSample>
void itk::Statistics::WeightedCovarianceCalculator< TSample >::SetWeights WeightArrayType   array
 

Sets the weights using an array


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:22:55 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000