mlpack
1.0.12
|
Extra data for each node in the tree. More...
Public Member Functions | |
NeighborSearchStat () | |
Initialize the statistic with the worst possible distance according to our sorting policy. More... | |
template<typename TreeType > | |
NeighborSearchStat (TreeType &) | |
Initialization for a fully initialized node. More... | |
double | Bound () const |
Get the overall bound (the better of the two bounds). More... | |
double & | Bound () |
Modify the overall bound (it should be the better of the two bounds). More... | |
double | FirstBound () const |
Get the first bound. More... | |
double & | FirstBound () |
Modify the first bound. More... | |
double | LastDistance () const |
Get the last distance calculation. More... | |
double & | LastDistance () |
Modify the last distance calculation. More... | |
void * | LastDistanceNode () const |
Get the last distance evaluation node. More... | |
void *& | LastDistanceNode () |
Modify the last distance evaluation node. More... | |
double | SecondBound () const |
Get the second bound. More... | |
double & | SecondBound () |
Modify the second bound. More... | |
Private Attributes | |
double | bound |
The better of the two bounds. More... | |
double | firstBound |
The first bound on the node's neighbor distances (B_1). More... | |
double | lastDistance |
The last distance evaluation. More... | |
void * | lastDistanceNode |
The last distance evaluation node. More... | |
double | secondBound |
The second bound on the node's neighbor distances (B_2). More... | |
Extra data for each node in the tree.
For neighbor searches, each node only needs to store a bound on neighbor distances.
Definition at line 28 of file neighbor_search_stat.hpp.
|
inline |
Initialize the statistic with the worst possible distance according to our sorting policy.
Definition at line 52 of file neighbor_search_stat.hpp.
|
inline |
Initialization for a fully initialized node.
In this case, we don't need to worry about the node.
Definition at line 64 of file neighbor_search_stat.hpp.
|
inline |
Get the overall bound (the better of the two bounds).
Definition at line 80 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::bound.
|
inline |
Modify the overall bound (it should be the better of the two bounds).
Definition at line 82 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::bound.
|
inline |
Get the first bound.
Definition at line 72 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::firstBound.
|
inline |
Modify the first bound.
Definition at line 74 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::firstBound.
|
inline |
Get the last distance calculation.
Definition at line 88 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::lastDistance.
|
inline |
Modify the last distance calculation.
Definition at line 90 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::lastDistance.
|
inline |
Get the last distance evaluation node.
Definition at line 84 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::lastDistanceNode.
|
inline |
Modify the last distance evaluation node.
Definition at line 86 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::lastDistanceNode.
|
inline |
Get the second bound.
Definition at line 76 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::secondBound.
|
inline |
Modify the second bound.
Definition at line 78 of file neighbor_search_stat.hpp.
References mlpack::neighbor::NeighborSearchStat< SortPolicy >::secondBound.
|
private |
The better of the two bounds.
Definition at line 40 of file neighbor_search_stat.hpp.
Referenced by mlpack::neighbor::NeighborSearchStat< SortPolicy >::Bound().
|
private |
The first bound on the node's neighbor distances (B_1).
This represents the worst candidate distance of any descendants of this node.
Definition at line 33 of file neighbor_search_stat.hpp.
Referenced by mlpack::neighbor::NeighborSearchStat< SortPolicy >::FirstBound().
|
private |
The last distance evaluation.
Definition at line 45 of file neighbor_search_stat.hpp.
Referenced by mlpack::neighbor::NeighborSearchStat< SortPolicy >::LastDistance().
|
private |
The last distance evaluation node.
Definition at line 43 of file neighbor_search_stat.hpp.
Referenced by mlpack::neighbor::NeighborSearchStat< SortPolicy >::LastDistanceNode().
|
private |
The second bound on the node's neighbor distances (B_2).
This represents a bound on the worst distance of any descendants of this node assembled using the best descendant candidate distance modified by the furthest descendant distance.
Definition at line 38 of file neighbor_search_stat.hpp.
Referenced by mlpack::neighbor::NeighborSearchStat< SortPolicy >::SecondBound().