#include <itkKdTree.h>
Inheritance diagram for itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >:
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 200 of file itkKdTree.h.
typedef Superclass::CentroidType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::CentroidType |
Centroid type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 204 of file itkKdTree.h.
typedef Superclass::InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::InstanceIdentifier |
Instance identifier type (index value type for the measurement vector in a sample
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 205 of file itkKdTree.h.
typedef Superclass::MeasurementType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementType |
Measurement type, not the measurement vector type
Reimplemented from itk::Statistics::KdTreeNode< TSample >.
Definition at line 203 of file itkKdTree.h.
typedef TSample::MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::MeasurementVectorSizeType |
Definition at line 206 of file itkKdTree.h.
typedef KdTreeNode< TSample> itk::Statistics::KdTreeNode< TSample >::Self [inherited] |
type alias for itself
Definition at line 66 of file itkKdTree.h.
typedef KdTreeNode< TSample > itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Superclass |
Definition at line 202 of file itkKdTree.h.
itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::KdTreeWeightedCentroidNonterminalNode | ( | unsigned int | partitionDimension, | |
MeasurementType | partitionValue, | |||
Superclass * | left, | |||
Superclass * | right, | |||
CentroidType & | centroid, | |||
unsigned int | size | |||
) |
virtual itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::~KdTreeWeightedCentroidNonterminalNode | ( | ) | [inline, virtual] |
Definition at line 214 of file itkKdTree.h.
virtual void itk::Statistics::KdTreeNode< TSample >::AddInstanceIdentifier | ( | InstanceIdentifier | id | ) | [pure virtual, inherited] |
Add an instance to this node
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::AddInstanceIdentifier | ( | InstanceIdentifier | ) | [inline] |
Definition at line 253 of file itkKdTree.h.
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 247 of file itkKdTree.h.
InstanceIdentifier itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetInstanceIdentifier | ( | vcl_size_t | ) | const [inline, virtual] |
Retuns the instance identifier of the index-th measurement vector
Implements itk::Statistics::KdTreeNode< TSample >.
Definition at line 250 of file itkKdTree.h.
MeasurementVectorSizeType itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetMeasurementVectorSize | ( | ) | const [inline] |
Return the length of a measurement vector
Definition at line 223 of file itkKdTree.h.
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
void itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::GetParameters | ( | unsigned int & | partitionDimension, | |
MeasurementType & | partitionValue | |||
) | const |
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 244 of file itkKdTree.h.
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 216 of file itkKdTree.h.
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Left | ( | ) | const [inline, virtual] |
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 228 of file itkKdTree.h.
const Superclass* itk::Statistics::KdTreeWeightedCentroidNonterminalNode< TSample >::Right | ( | ) | const [inline, virtual] |
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 231 of file itkKdTree.h.
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 241 of file itkKdTree.h.