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

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

#include <itkSubsample.h>

Inheritance diagram for itk::Statistics::Subsample:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef Subsample Self
typedef Sample< typename TSample::MeasurementVectorType > Superclass
typedef SmartPointer< SelfPointer
typedef TSample::Pointer SamplePointer
typedef TSample::MeasurementVectorType MeasurementVectorType
typedef TSample::MeasurementType MeasurementType
typedef TSample::InstanceIdentifier InstanceIdentifier
typedef TSample::FrequencyType FrequencyType
typedef MeasurementVectorType ValueType
typedef std::vector< InstanceIdentifierInstanceIdentifierHolder

Public Methods

virtual const char * GetClassName () const
 itkStaticConstMacro (MeasurementVectorSize, unsigned int, TSample::MeasurementVectorSize)
void SetSample (TSample *sample)
TSample * GetSample ()
void InitializeWithAllInstances ()
void AddInstance (InstanceIdentifier id)
unsigned int Size () const
unsigned int Size (const unsigned int &) const
unsigned int GetNumberOfInstances () const
void Clear ()
MeasurementVectorTypeGetMeasurementVector (const InstanceIdentifier &id)
FrequencyType GetFrequency (const InstanceIdentifier &id) const
FrequencyType GetTotalFrequency (const unsigned int &) const
void Swap (int index1, int index2)
MeasurementVectorTypeGetMeasurementVectorByIndex (int index)
InstanceIdentifier GetInstanceIdentifier (int index)
Iterator Begin ()
Iterator End ()

Static Public Methods

Pointer New ()

Protected Methods

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

Friends

class Iterator

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


Member Typedef Documentation

template<class TSample>
typedef TSample::FrequencyType itk::Statistics::Subsample< TSample >::FrequencyType
 

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 49 of file itkSubsample.h.

template<class TSample>
typedef TSample::InstanceIdentifier itk::Statistics::Subsample< TSample >::InstanceIdentifier
 

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 48 of file itkSubsample.h.

template<class TSample>
typedef std::vector< InstanceIdentifier > itk::Statistics::Subsample< TSample >::InstanceIdentifierHolder
 

Type of the storage for instances that belong to the class represented by a Subsample object. A Subsample object stores only the InstanceIdentifiers. The actual data is still in the Sample object

Definition at line 62 of file itkSubsample.h.

template<class TSample>
typedef TSample::MeasurementType itk::Statistics::Subsample< TSample >::MeasurementType
 

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 47 of file itkSubsample.h.

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

Typedefs for Measurement vector, measurement, Instance Identifier, frequency, size, size element value from the template argument TSample

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 46 of file itkSubsample.h.

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

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 33 of file itkSubsample.h.

template<class TSample>
typedef TSample::Pointer itk::Statistics::Subsample< TSample >::SamplePointer
 

Smart pointer to the actual sample data holder

Definition at line 42 of file itkSubsample.h.

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

Standard class typedefs

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 31 of file itkSubsample.h.

template<class TSample>
typedef Sample< typename TSample::MeasurementVectorType > itk::Statistics::Subsample< TSample >::Superclass
 

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 32 of file itkSubsample.h.

template<class TSample>
typedef MeasurementVectorType itk::Statistics::Subsample< TSample >::ValueType
 

Definition at line 50 of file itkSubsample.h.


Constructor & Destructor Documentation

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

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

Definition at line 210 of file itkSubsample.h.


Member Function Documentation

template<class TSample>
void itk::Statistics::Subsample< TSample >::AddInstance InstanceIdentifier    id [inline]
 

Definition at line 86 of file itkSubsample.h.

template<class TSample>
Iterator itk::Statistics::Subsample< TSample >::Begin void    [inline]
 

Definition at line 134 of file itkSubsample.h.

template<class TSample>
void itk::Statistics::Subsample< TSample >::Clear void    [inline]
 

Definition at line 106 of file itkSubsample.h.

template<class TSample>
Iterator itk::Statistics::Subsample< TSample >::End void    [inline]
 

Definition at line 140 of file itkSubsample.h.

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

Run-time type information (and related methods).

Reimplemented from itk::Statistics::Sample< TSample::MeasurementVectorType >.

template<class TSample>
FrequencyType itk::Statistics::Subsample< TSample >::GetFrequency const InstanceIdentifier   id const [inline, virtual]
 

returns the frequency of the instance which is identified by the 'id'

Implements itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 118 of file itkSubsample.h.

template<class TSample>
InstanceIdentifier itk::Statistics::Subsample< TSample >::GetInstanceIdentifier int    index
 

template<class TSample>
MeasurementVectorType& itk::Statistics::Subsample< TSample >::GetMeasurementVector const InstanceIdentifier   id [inline, virtual]
 

retunrs the measurement of the instance which is identified by the 'id'

Implements itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 114 of file itkSubsample.h.

template<class TSample>
MeasurementVectorType& itk::Statistics::Subsample< TSample >::GetMeasurementVectorByIndex int    index
 

template<class TSample>
unsigned int itk::Statistics::Subsample< TSample >::GetNumberOfInstances   const [virtual]
 

Implements itk::Statistics::Sample< TSample::MeasurementVectorType >.

template<class TSample>
TSample* itk::Statistics::Subsample< TSample >::GetSample   [inline]
 

Definition at line 68 of file itkSubsample.h.

template<class TSample>
FrequencyType itk::Statistics::Subsample< TSample >::GetTotalFrequency const unsigned int &    const [inline, virtual]
 

returns the total frequency for the 'd' dimension

Implements itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 122 of file itkSubsample.h.

template<class TSample>
void itk::Statistics::Subsample< TSample >::InitializeWithAllInstances   [inline]
 

Definition at line 71 of file itkSubsample.h.

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

MeasurementVectorSize constant from super class

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

standard New() method support

Reimplemented from itk::Object.

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

template<class TSample>
void itk::Statistics::Subsample< TSample >::SetSample TSample *    sample [inline]
 

Plug in the actual sample data

Definition at line 65 of file itkSubsample.h.

template<class TSample>
unsigned int itk::Statistics::Subsample< TSample >::Size const unsigned int &    const [inline, virtual]
 

Implements itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 99 of file itkSubsample.h.

template<class TSample>
unsigned int itk::Statistics::Subsample< TSample >::Size void    const [inline, virtual]
 

returns SizeType object whose each element is the number of elements in each dimension

Implements itk::Statistics::Sample< TSample::MeasurementVectorType >.

Definition at line 94 of file itkSubsample.h.

template<class TSample>
void itk::Statistics::Subsample< TSample >::Swap int    index1,
int    index2
 


Friends And Related Function Documentation

template<class TSample>
friend class Iterator [friend]
 

Definition at line 132 of file itkSubsample.h.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:54:07 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000