MLPACK
1.0.7
|
A statistic for use with MLPACK trees, which stores the upper bound on distance to nearest neighbors and the component which this node belongs to. More...
Public Member Functions | |
DTBStat () | |
A generic initializer. More... | |
template<typename TreeType > | |
DTBStat (const TreeType &node) | |
This is called when a node is finished initializing. More... | |
double | Bound () const |
Get the total bound for pruning. More... | |
double & | Bound () |
Modify the total bound for pruning. More... | |
int | ComponentMembership () const |
Get the component membership of this node. More... | |
int & | ComponentMembership () |
Modify the component membership of this node. More... | |
double | MaxNeighborDistance () const |
Get the maximum neighbor distance. More... | |
double & | MaxNeighborDistance () |
Modify the maximum neighbor distance. More... | |
double | MinNeighborDistance () const |
Get the minimum neighbor distance. More... | |
double & | MinNeighborDistance () |
Modify the minimum neighbor distance. More... | |
Private Attributes | |
double | bound |
Total bound for pruning. More... | |
int | componentMembership |
The index of the component that all points in this node belong to. More... | |
double | maxNeighborDistance |
Upper bound on the distance to the nearest neighbor of any point in this node. More... | |
double | minNeighborDistance |
Lower bound on the distance to the nearest neighbor of any point in this node. More... | |
A statistic for use with MLPACK trees, which stores the upper bound on distance to nearest neighbors and the component which this node belongs to.
mlpack::emst::DTBStat::DTBStat | ( | ) |
A generic initializer.
Sets the maximum neighbor distance to its default, and the component membership to -1 (no component).
mlpack::emst::DTBStat::DTBStat | ( | const TreeType & | node | ) |
This is called when a node is finished initializing.
We set the maximum neighbor distance to its default, and if possible, we set the component membership of the node (if it has only one point and no children).
node | Node that has been finished. |
|
inline |
|
inline |
|
inline |
Get the component membership of this node.
Definition at line 105 of file dtb.hpp.
References componentMembership.
|
inline |
Modify the component membership of this node.
Definition at line 107 of file dtb.hpp.
References componentMembership.
|
inline |
Get the maximum neighbor distance.
Definition at line 90 of file dtb.hpp.
References maxNeighborDistance.
|
inline |
Modify the maximum neighbor distance.
Definition at line 92 of file dtb.hpp.
References maxNeighborDistance.
|
inline |
Get the minimum neighbor distance.
Definition at line 95 of file dtb.hpp.
References minNeighborDistance.
|
inline |
Modify the minimum neighbor distance.
Definition at line 97 of file dtb.hpp.
References minNeighborDistance.
|
private |
|
private |
The index of the component that all points in this node belong to.
This is the same index returned by UnionFind for all points in this node. If points in this node are in different components, this value will be negative.
Definition at line 70 of file dtb.hpp.
Referenced by ComponentMembership().
|
private |
Upper bound on the distance to the nearest neighbor of any point in this node.
Definition at line 57 of file dtb.hpp.
Referenced by MaxNeighborDistance().
|
private |
Lower bound on the distance to the nearest neighbor of any point in this node.
Definition at line 61 of file dtb.hpp.
Referenced by MinNeighborDistance().