#include <itkKdTree.h>
Inheritance diagram for itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >:
Public Types | |
typedef KdTreeNode< TSample > | Superclass |
typedef Superclass::MeasurementType | MeasurementType |
typedef Superclass::CentroidType | CentroidType |
typedef Superclass::InstanceIdentifier | InstanceIdentifier |
Public Member Functions | |
KdTreeWeightedCentroidNonterminalNode (unsigned int partitionDimension, MeasurementType partitionValue, Superclass *left, Superclass *right, CentroidType ¢roid, unsigned int size) | |
virtual | ~KdTreeWeightedCentroidNonterminalNode () |
virtual bool | IsTerminal () |
void | GetParameters (unsigned int &partitionDimension, MeasurementType &partitionValue) |
Superclass * | Left () |
Superclass * | Right () |
unsigned int | Size () |
void | GetWeightedCentroid (CentroidType ¢roid) |
void | GetCentroid (CentroidType ¢roid) |
InstanceIdentifier | GetInstanceIdentifier (vcl_size_t) |
void | AddInstanceIdentifier (InstanceIdentifier) |
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.
Definition at line 189 of file itkKdTree.h.
|
Centroid type Reimplemented from itk::Statistics::KdTreeNode< TSample >. Definition at line 193 of file itkKdTree.h. Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetCentroid(), and itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetWeightedCentroid(). |
|
Instance identifier type (index value type for the measurement vector in a sample Reimplemented from itk::Statistics::KdTreeNode< TSample >. Definition at line 194 of file itkKdTree.h. Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier(), and itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier(). |
|
Measurement type, not the measurement vector type Reimplemented from itk::Statistics::KdTreeNode< TSample >. Definition at line 192 of file itkKdTree.h. |
|
Definition at line 191 of file itkKdTree.h. Referenced by itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left(), and itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right(). |
|
|
|
Definition at line 202 of file itkKdTree.h. |
|
Add an instance to this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 228 of file itkKdTree.h. References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::InstanceIdentifier. |
|
Returns the centroid. weighted centroid divided by the size Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 222 of file itkKdTree.h. References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::CentroidType. |
|
Retuns the instance identifier of the index-th measurement vector Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 225 of file itkKdTree.h. References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::InstanceIdentifier. |
|
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 Implements itk::Statistics::KdTreeNode< TSample >.
|
|
Returns the vector sum of the all measurement vectors under this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 219 of file itkKdTree.h. References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::CentroidType. |
|
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 204 of file itkKdTree.h. |
|
Returns the pointer to the left child of this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 210 of file itkKdTree.h. References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass. |
|
Returns the pointer to the right child of this node Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 213 of file itkKdTree.h. References itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass. |
|
Returs the number of measurement vectors under this node including its children Implements itk::Statistics::KdTreeNode< TSample >. Definition at line 216 of file itkKdTree.h. |