mlpack
1.0.12
|
Traversal information for NeighborSearch. More...
Public Member Functions | |
NeighborSearchTraversalInfo () | |
Create the TraversalInfo object and initialize the pointers to NULL. More... | |
double | LastBaseCase () const |
Get the base case associated with the last node combination. More... | |
double & | LastBaseCase () |
Modify the base case associated with the last node combination. More... | |
TreeType * | LastQueryNode () const |
Get the last query node. More... | |
TreeType *& | LastQueryNode () |
Modify the last query node. More... | |
TreeType * | LastReferenceNode () const |
Get the last reference node. More... | |
TreeType *& | LastReferenceNode () |
Modify the last reference node. More... | |
double | LastScore () const |
Get the score associated with the last query and reference nodes. More... | |
double & | LastScore () |
Modify the score associated with the last query and reference nodes. More... | |
Private Attributes | |
double | lastBaseCase |
The last base case. More... | |
TreeType * | lastQueryNode |
The last query node. More... | |
TreeType * | lastReferenceNode |
The last reference node. More... | |
double | lastScore |
The last distance. More... | |
Traversal information for NeighborSearch.
This information is used to make parent-child prunes or parent-parent prunes in Score() without needing to evaluate the distance between two nodes.
The information held by this class is the last node combination visited before the current node combination was recursed into and the distance between the node centroids.
Definition at line 31 of file ns_traversal_info.hpp.
|
inline |
Create the TraversalInfo object and initialize the pointers to NULL.
Definition at line 37 of file ns_traversal_info.hpp.
|
inline |
Get the base case associated with the last node combination.
Definition at line 59 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastBaseCase.
|
inline |
Modify the base case associated with the last node combination.
Definition at line 61 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastBaseCase.
|
inline |
Get the last query node.
Definition at line 44 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastQueryNode.
|
inline |
Modify the last query node.
Definition at line 46 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastQueryNode.
|
inline |
Get the last reference node.
Definition at line 49 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastReferenceNode.
|
inline |
Modify the last reference node.
Definition at line 51 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastReferenceNode.
|
inline |
Get the score associated with the last query and reference nodes.
Definition at line 54 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastScore.
|
inline |
Modify the score associated with the last query and reference nodes.
Definition at line 56 of file ns_traversal_info.hpp.
References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastScore.
|
private |
The last base case.
Definition at line 71 of file ns_traversal_info.hpp.
Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastBaseCase().
|
private |
The last query node.
Definition at line 65 of file ns_traversal_info.hpp.
Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastQueryNode().
|
private |
The last reference node.
Definition at line 67 of file ns_traversal_info.hpp.
Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastReferenceNode().
|
private |
The last distance.
Definition at line 69 of file ns_traversal_info.hpp.
Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastScore().