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

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

#include <itkKdTree.h>

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

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

Collaboration graph
[legend]

List of all members.


Detailed Description

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

This is a subclass of the KdTreeNode.

KdTreeNonterminalNode does have the information related with the centroids. Therefore, the GetWeightedCentroid and the GetCentroid methods returns meaningful values. This class should have the left and right children. If we have a sample and want to generate a KdTree with the centroid related information, we can use the WeightedCentroidKdTreeGenerator. The centroid, the weighted centroid, and the size (the number of measurement vectors) can be used to accelate the k-means estimation.

See also:
KdTreeNode, KdTreeNonterminalNode, WeightedCentroidKdTreeGenerator

Definition at line 205 of file Numerics/Statistics/itkKdTree.h.


Public Types

typedef Superclass::CentroidType CentroidType
typedef Superclass::CentroidType CentroidType
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
typedef Superclass::MeasurementType MeasurementType
typedef Superclass::MeasurementType MeasurementType
typedef
TSample::MeasurementVectorSizeType 
MeasurementVectorSizeType
typedef
TSample::MeasurementVectorSizeType 
MeasurementVectorSizeType
typedef KdTreeNode< TSample > Self
typedef KdTreeNode< TSample > Self
typedef KdTreeNode< TSample > Superclass
typedef KdTreeNode< TSample > Superclass

Public Member Functions

virtual void AddInstanceIdentifier (InstanceIdentifier id)=0
void AddInstanceIdentifier (InstanceIdentifier valueId)
void AddInstanceIdentifier (InstanceIdentifier valueId)
void GetCentroid (CentroidType &centroid)
void GetCentroid (CentroidType &centroid)
InstanceIdentifier GetInstanceIdentifier (vcl_size_t) const
InstanceIdentifier GetInstanceIdentifier (vcl_size_t) const
MeasurementVectorSizeType GetMeasurementVectorSize () const
MeasurementVectorSizeType GetMeasurementVectorSize () const
virtual void GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) const =0
void GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) const
void GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) const
void GetWeightedCentroid (CentroidType &centroid)
void GetWeightedCentroid (CentroidType &centroid)
virtual bool IsTerminal () const
virtual bool IsTerminal () const
 KdTreeWeightedCentroidNonterminalNode (unsigned int partitionDimension, MeasurementType partitionValue, Superclass *left, Superclass *right, CentroidType &centroid, unsigned int size)
 KdTreeWeightedCentroidNonterminalNode (unsigned int partitionDimension, MeasurementType partitionValue, Superclass *left, Superclass *right, CentroidType &centroid, unsigned int size)
const SuperclassLeft () const
SuperclassLeft ()
const SuperclassLeft () const
SuperclassLeft ()
const SuperclassRight () const
SuperclassRight ()
const SuperclassRight () const
SuperclassRight ()
unsigned int Size () const
unsigned int Size () const
virtual ~KdTreeWeightedCentroidNonterminalNode ()
virtual ~KdTreeWeightedCentroidNonterminalNode ()

Member Typedef Documentation

Centroid type

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

Definition at line 225 of file Review/Statistics/itkKdTree.h.

Centroid type

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

Definition at line 209 of file Numerics/Statistics/itkKdTree.h.

Instance identifier type (index value type for the measurement vector in a sample

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

Definition at line 226 of file Review/Statistics/itkKdTree.h.

Instance identifier type (index value type for the measurement vector in a sample

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

Definition at line 210 of file Numerics/Statistics/itkKdTree.h.

Measurement type, not the measurement vector type

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

Definition at line 224 of file Review/Statistics/itkKdTree.h.

Measurement type, not the measurement vector type

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

Definition at line 208 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
typedef TSample::MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementVectorSizeType

Definition at line 227 of file Review/Statistics/itkKdTree.h.

template<class TSample>
typedef TSample::MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementVectorSizeType

Definition at line 211 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
typedef KdTreeNode< TSample> itk::Statistics::KdTreeNode< TSample >::Self [inherited]

type alias for itself

Definition at line 66 of file Review/Statistics/itkKdTree.h.

template<class TSample>
typedef KdTreeNode< TSample> itk::Statistics::KdTreeNode< TSample >::Self [inherited]

type alias for itself

Definition at line 66 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
typedef KdTreeNode< TSample > itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass

Definition at line 223 of file Review/Statistics/itkKdTree.h.

template<class TSample>
typedef KdTreeNode< TSample > itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass

Definition at line 207 of file Numerics/Statistics/itkKdTree.h.


Constructor & Destructor Documentation

template<class TSample>
itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::KdTreeWeightedCentroidNonterminalNode ( unsigned int  partitionDimension,
MeasurementType  partitionValue,
Superclass left,
Superclass right,
CentroidType centroid,
unsigned int  size 
)

template<class TSample>
virtual itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::~KdTreeWeightedCentroidNonterminalNode (  )  [inline, virtual]

Definition at line 219 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::KdTreeWeightedCentroidNonterminalNode ( unsigned int  partitionDimension,
MeasurementType  partitionValue,
Superclass left,
Superclass right,
CentroidType centroid,
unsigned int  size 
)

template<class TSample>
virtual itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::~KdTreeWeightedCentroidNonterminalNode (  )  [inline, virtual]

Definition at line 235 of file Review/Statistics/itkKdTree.h.


Member Function Documentation

template<class TSample>
virtual void itk::Statistics::KdTreeNode< TSample >::AddInstanceIdentifier ( InstanceIdentifier  id  )  [pure virtual, inherited]

Add an instance to this node

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier ( InstanceIdentifier  valueId  )  [inline]

Definition at line 292 of file Review/Statistics/itkKdTree.h.

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier ( InstanceIdentifier  valueId  )  [inline]

Definition at line 257 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetCentroid ( CentroidType centroid  )  [inline, virtual]

Returns the centroid. weighted centroid divided by the size

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 282 of file Review/Statistics/itkKdTree.h.

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetCentroid ( CentroidType centroid  )  [inline, virtual]

Returns the centroid. weighted centroid divided by the size

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 251 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier ( vcl_size_t  index  )  const [inline, virtual]

Retuns the instance identifier of the index-th measurement vector

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 287 of file Review/Statistics/itkKdTree.h.

template<class TSample>
InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier ( vcl_size_t  index  )  const [inline, virtual]

Retuns the instance identifier of the index-th measurement vector

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 254 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetMeasurementVectorSize (  )  const [inline]

Return the length of a measurement vector

Definition at line 246 of file Review/Statistics/itkKdTree.h.

template<class TSample>
MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetMeasurementVectorSize (  )  const [inline]

Return the length of a measurement vector

Definition at line 228 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
virtual void itk::Statistics::KdTreeNode< TSample >::GetParameters ( unsigned int &  partitionDimension,
MeasurementType partitionValue 
) const [pure virtual, inherited]

Fills the partitionDimension (the dimension that was chosen to split the measurement vectors belong to this node to the left and the right child among k dimensions) and the partitionValue (the measurement value on the partitionDimension divides the left and the right child

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetParameters ( unsigned int &  partitionDimension,
MeasurementType partitionValue 
) const

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetParameters ( unsigned int &  partitionDimension,
MeasurementType partitionValue 
) const

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetWeightedCentroid ( CentroidType centroid  )  [inline, virtual]

Returns the vector sum of the all measurement vectors under this node

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 277 of file Review/Statistics/itkKdTree.h.

template<class TSample>
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetWeightedCentroid ( CentroidType centroid  )  [inline, virtual]

Returns the vector sum of the all measurement vectors under this node

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 248 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
virtual bool itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::IsTerminal (  )  const [inline, virtual]

Returns true if the node is a terminal node, that is a node that doesn't have any child.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 237 of file Review/Statistics/itkKdTree.h.

template<class TSample>
virtual bool itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::IsTerminal (  )  const [inline, virtual]

Returns true if the node is a terminal node, that is a node that doesn't have any child.

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 221 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left (  )  const [inline, virtual]

template<class TSample>
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left (  )  [inline, virtual]

Returns the pointer to the left child of this node

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 251 of file Review/Statistics/itkKdTree.h.

template<class TSample>
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left (  )  const [inline, virtual]

template<class TSample>
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left (  )  [inline, virtual]

Returns the pointer to the left child of this node

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 233 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right (  )  const [inline, virtual]

template<class TSample>
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right (  )  [inline, virtual]

Returns the pointer to the right child of this node

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 256 of file Review/Statistics/itkKdTree.h.

template<class TSample>
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right (  )  const [inline, virtual]

template<class TSample>
Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right (  )  [inline, virtual]

Returns the pointer to the right child of this node

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 236 of file Numerics/Statistics/itkKdTree.h.

template<class TSample>
unsigned int itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Size (  )  const [inline, virtual]

Returs the number of measurement vectors under this node including its children

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 272 of file Review/Statistics/itkKdTree.h.

template<class TSample>
unsigned int itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Size (  )  const [inline, virtual]

Returs the number of measurement vectors under this node including its children

Implements itk::Statistics::KdTreeNode< TSample >.

Definition at line 245 of file Numerics/Statistics/itkKdTree.h.


The documentation for this class was generated from the following files:

Generated at Thu May 28 19:26:49 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000