MLPACK  1.0.8
dtb_stat.hpp
Go to the documentation of this file.
1 
22 #ifndef __MLPACK_METHODS_EMST_DTB_STAT_HPP
23 #define __MLPACK_METHODS_EMST_DTB_STAT_HPP
24 
25 #include <mlpack/core.hpp>
26 
27 namespace mlpack {
28 namespace emst {
29 
34 class DTBStat
35 {
36  private:
40 
44 
46  double bound;
47 
53 
54  public:
59  DTBStat();
60 
68  template<typename TreeType>
69  DTBStat(const TreeType& node);
70 
72  double MaxNeighborDistance() const { return maxNeighborDistance; }
75 
77  double MinNeighborDistance() const { return minNeighborDistance; }
80 
82  double Bound() const { return bound; }
84  double& Bound() { return bound; }
85 
87  int ComponentMembership() const { return componentMembership; }
90 
91 }; // class DTBStat
92 
93 }; // namespace emst
94 }; // namespace mlpack
95 
96 #endif // __MLPACK_METHODS_EMST_DTB_STAT_HPP
double minNeighborDistance
Lower bound on the distance to the nearest neighbor of any point in this node.
Definition: dtb_stat.hpp:43
double MaxNeighborDistance() const
Get the maximum neighbor distance.
Definition: dtb_stat.hpp:72
double & Bound()
Modify the total bound for pruning.
Definition: dtb_stat.hpp:84
int componentMembership
The index of the component that all points in this node belong to.
Definition: dtb_stat.hpp:52
double & MaxNeighborDistance()
Modify the maximum neighbor distance.
Definition: dtb_stat.hpp:74
DTBStat()
A generic initializer.
int ComponentMembership() const
Get the component membership of this node.
Definition: dtb_stat.hpp:87
double maxNeighborDistance
Upper bound on the distance to the nearest neighbor of any point in this node.
Definition: dtb_stat.hpp:39
double MinNeighborDistance() const
Get the minimum neighbor distance.
Definition: dtb_stat.hpp:77
int & ComponentMembership()
Modify the component membership of this node.
Definition: dtb_stat.hpp:89
double bound
Total bound for pruning.
Definition: dtb_stat.hpp:46
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:34
double Bound() const
Get the total bound for pruning.
Definition: dtb_stat.hpp:82