12 #ifndef MLPACK_METHODS_EMST_DTB_STAT_HPP 13 #define MLPACK_METHODS_EMST_DTB_STAT_HPP 29 double maxNeighborDistance;
33 double minNeighborDistance;
42 int componentMembership;
50 maxNeighborDistance(DBL_MAX),
51 minNeighborDistance(DBL_MAX),
53 componentMembership(-1) { }
62 template<
typename TreeType>
64 maxNeighborDistance(DBL_MAX),
65 minNeighborDistance(DBL_MAX),
68 ((node.NumPoints() == 1) && (node.NumChildren() == 0)) ?
69 node.Point(0) : -1) { }
82 double Bound()
const {
return bound; }
84 double&
Bound() {
return bound; }
95 #endif // MLPACK_METHODS_EMST_DTB_STAT_HPP double & Bound()
Modify the total bound for pruning.
Definition: dtb_stat.hpp:84
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
double Bound() const
Get the total bound for pruning.
Definition: dtb_stat.hpp:82
double & MaxNeighborDistance()
Modify the maximum neighbor distance.
Definition: dtb_stat.hpp:74
double MaxNeighborDistance() const
Get the maximum neighbor distance.
Definition: dtb_stat.hpp:72
double MinNeighborDistance() const
Get the minimum neighbor distance.
Definition: dtb_stat.hpp:77
int ComponentMembership() const
Get the component membership of this node.
Definition: dtb_stat.hpp:87
DTBStat()
A generic initializer.
Definition: dtb_stat.hpp:49
int & ComponentMembership()
Modify the component membership of this node.
Definition: dtb_stat.hpp:89
double & MinNeighborDistance()
Modify the minimum neighbor distance.
Definition: dtb_stat.hpp:79
A statistic for use with mlpack trees, which stores the upper bound on distance to nearest neighbors ...
Definition: dtb_stat.hpp:24
DTBStat(const TreeType &node)
This is called when a node is finished initializing.
Definition: dtb_stat.hpp:63