14 #ifndef __MLPACK_METHODS_EMST_DTB_STAT_HPP 15 #define __MLPACK_METHODS_EMST_DTB_STAT_HPP 52 maxNeighborDistance(DBL_MAX),
53 minNeighborDistance(DBL_MAX),
55 componentMembership(-1) { }
64 template<
typename TreeType>
66 maxNeighborDistance(DBL_MAX),
67 minNeighborDistance(DBL_MAX),
70 ((node.NumPoints() == 1) && (node.NumChildren() == 0)) ?
71 node.Point(0) : -1) { }
98 #endif // __MLPACK_METHODS_EMST_DTB_STAT_HPP double minNeighborDistance
Lower bound on the distance to the nearest neighbor of any point in this node.
double & Bound()
Modify the total bound for pruning.
Linear algebra utility functions, generally performed on matrices or vectors.
int componentMembership
The index of the component that all points in this node belong to.
double Bound() const
Get the total bound for pruning.
double & MaxNeighborDistance()
Modify the maximum neighbor distance.
double MaxNeighborDistance() const
Get the maximum neighbor distance.
double MinNeighborDistance() const
Get the minimum neighbor distance.
int ComponentMembership() const
Get the component membership of this node.
DTBStat()
A generic initializer.
double maxNeighborDistance
Upper bound on the distance to the nearest neighbor of any point in this node.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
int & ComponentMembership()
Modify the component membership of this node.
double bound
Total bound for pruning.
double & MinNeighborDistance()
Modify the minimum neighbor distance.
A statistic for use with mlpack trees, which stores the upper bound on distance to nearest neighbors ...
DTBStat(const TreeType &node)
This is called when a node is finished initializing.