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

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

calculates sample mean More...

#include <itkMeanCalculator.h>

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

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

Collaboration graph
[legend]
List of all members.

[NOHEADER]

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

Public Types

typedef MeanCalculator Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef Vector< double, itkGetStaticConstMacro(MeasurementVectorSize) OutputType )

Public Member Functions

 itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize)
OutputTypeGetOutput ()

Protected Member Functions

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

Detailed Description

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

calculates sample mean

You plug in the target sample data using SetSample method. Then call the GenerateData method to run the alogithm.

The return value that the GetOutput method $ = \frac{1}{n}\sum^{n}_{i=1}x_{i}$ where $n$ is the number of measurement vectors in the target

Definition at line 41 of file itkMeanCalculator.h.


Member Typedef Documentation

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

Typedef for the mean output Definition at line 60 of file itkMeanCalculator.h.

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

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

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

Definition at line 48 of file itkMeanCalculator.h.

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

Standard class typedefs.

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

Definition at line 46 of file itkMeanCalculator.h.

template<class TSample>
typedef Object itk::Statistics::MeanCalculator< TSample >::Superclass
 

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

Definition at line 47 of file itkMeanCalculator.h.


Constructor & Destructor Documentation

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

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

Definition at line 67 of file itkMeanCalculator.h.

References itk::Statistics::MeanCalculator< TSample >::OutputType.


Member Function Documentation

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

Calculates the mean and save it

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

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

Standard Macros

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

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

Returns the mean vector

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

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

Standard Macros

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

template<class TSample>
void itk::Statistics::MeanCalculator< 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 >.


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