SYNOPSIS

Public Member Functions

NeighborSearchTraversalInfo ()

Create the TraversalInfo object and initialize the pointers to NULL. double LastBaseCase () const

Get the base case associated with the last node combination. double & LastBaseCase ()

Modify the base case associated with the last node combination. TreeType * LastQueryNode () const

Get the last query node. TreeType *& LastQueryNode ()

Modify the last query node. TreeType * LastReferenceNode () const

Get the last reference node. TreeType *& LastReferenceNode ()

Modify the last reference node. double LastScore () const

Get the score associated with the last query and reference nodes. double & LastScore ()

Modify the score associated with the last query and reference nodes.

Private Attributes

double lastBaseCase

The last base case. TreeType * lastQueryNode

The last query node. TreeType * lastReferenceNode

The last reference node. double lastScore

The last distance.

Detailed Description

template<typename TreeType>class mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >

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 39 of file ns_traversal_info.hpp.

Constructor & Destructor Documentation

template<typename TreeType > \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::\fBNeighborSearchTraversalInfo\fP ()\fC [inline]\fP

Create the TraversalInfo object and initialize the pointers to NULL.

Definition at line 45 of file ns_traversal_info.hpp.

Member Function Documentation

template<typename TreeType > double \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastBaseCase () const\fC [inline]\fP

Get the base case associated with the last node combination.

Definition at line 67 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastBaseCase.

template<typename TreeType > double& \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastBaseCase ()\fC [inline]\fP

Modify the base case associated with the last node combination.

Definition at line 69 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastBaseCase.

template<typename TreeType > TreeType* \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastQueryNode () const\fC [inline]\fP

Get the last query node.

Definition at line 52 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastQueryNode.

template<typename TreeType > TreeType*& \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastQueryNode ()\fC [inline]\fP

Modify the last query node.

Definition at line 54 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastQueryNode.

template<typename TreeType > TreeType* \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastReferenceNode () const\fC [inline]\fP

Get the last reference node.

Definition at line 57 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastReferenceNode.

template<typename TreeType > TreeType*& \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastReferenceNode ()\fC [inline]\fP

Modify the last reference node.

Definition at line 59 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastReferenceNode.

template<typename TreeType > double \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastScore () const\fC [inline]\fP

Get the score associated with the last query and reference nodes.

Definition at line 62 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastScore.

template<typename TreeType > double& \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::LastScore ()\fC [inline]\fP

Modify the score associated with the last query and reference nodes.

Definition at line 64 of file ns_traversal_info.hpp.

References mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::lastScore.

Member Data Documentation

template<typename TreeType > double \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::lastBaseCase\fC [private]\fP

The last base case.

Definition at line 79 of file ns_traversal_info.hpp.

Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastBaseCase().

template<typename TreeType > TreeType* \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::lastQueryNode\fC [private]\fP

The last query node.

Definition at line 73 of file ns_traversal_info.hpp.

Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastQueryNode().

template<typename TreeType > TreeType* \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::lastReferenceNode\fC [private]\fP

The last reference node.

Definition at line 75 of file ns_traversal_info.hpp.

Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastReferenceNode().

template<typename TreeType > double \fBmlpack::neighbor::NeighborSearchTraversalInfo\fP< TreeType >::lastScore\fC [private]\fP

The last distance.

Definition at line 77 of file ns_traversal_info.hpp.

Referenced by mlpack::neighbor::NeighborSearchTraversalInfo< TreeType >::LastScore().

Author

Generated automatically by Doxygen for MLPACK from the source code.