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

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

calculates sample mean where each measurement vector has associated weight value More...

#include <itkWeightedMeanCalculator.h>

Inheritance diagram for itk::Statistics::WeightedMeanCalculator< TSample >:

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

Collaboration graph
[legend]
List of all members.

[NOHEADER]

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

Public Types

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

Public Member Functions

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

Protected Member Functions

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

Detailed Description

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

calculates sample mean where each measurement vector has associated weight value

To run this algorithm, you have plug in the target sample data using SetInpuSample method and provides weight by an array or function. . Then call the Update method to run the alogithm.

See also:
MeanCalculator SampleAlgorithmBase

Definition at line 44 of file itkWeightedMeanCalculator.h.


Member Typedef Documentation

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

Definition at line 61 of file itkWeightedMeanCalculator.h.

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

Mean (output) typedef Definition at line 64 of file itkWeightedMeanCalculator.h.

Referenced by itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator().

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

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

Definition at line 51 of file itkWeightedMeanCalculator.h.

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

Standard class typedefs.

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

Definition at line 49 of file itkWeightedMeanCalculator.h.

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

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

Definition at line 50 of file itkWeightedMeanCalculator.h.

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

Array typedef for weights Definition at line 67 of file itkWeightedMeanCalculator.h.

Referenced by itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator().

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

Weight calculation function typedef Definition at line 76 of file itkWeightedMeanCalculator.h.

Referenced by itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator().


Constructor & Destructor Documentation

template<class TSample>
itk::Statistics::WeightedMeanCalculator< TSample >::WeightedMeanCalculator  )  [protected]
 

template<class TSample>
virtual itk::Statistics::WeightedMeanCalculator< TSample >::~WeightedMeanCalculator  )  [inline, protected, virtual]
 

Definition at line 91 of file itkWeightedMeanCalculator.h.

References itk::Statistics::WeightedMeanCalculator< TSample >::OutputType, itk::Statistics::WeightedMeanCalculator< TSample >::WeightArrayType, and itk::Statistics::WeightedMeanCalculator< TSample >::WeightFunctionType.


Member Function Documentation

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

Calculates the mean and save it

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

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

Standard Macros

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

template<class TSample>
OutputType* itk::Statistics::WeightedMeanCalculator< TSample >::GetOutput  ) 
 

Returns the mean vector as the result

template<class TSample>
WeightFunctionType* itk::Statistics::WeightedMeanCalculator< TSample >::GetWeightFunction  ) 
 

Gets the weight function

template<class TSample>
WeightArrayType* itk::Statistics::WeightedMeanCalculator< TSample >::GetWeights  ) 
 

Gets the weights array

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

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

Standard Macros

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

template<class TSample>
void itk::Statistics::WeightedMeanCalculator< 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::WeightedMeanCalculator< TSample >::SetWeightFunction WeightFunctionType func  ) 
 

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

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

Sets the weights using an array


The documentation for this class was generated from the following file:
Generated at Sat Mar 31 03:14:03 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000