NSWrapper is a wrapper class for most NeighborSearch types. More...

Public Member Functions | |
| NSWrapper (const NeighborSearchMode searchMode, const double epsilon) | |
| Construct the NSWrapper object, initializing the internally-held NeighborSearch object. More... | |
| virtual | ~NSWrapper () |
| Delete the NSWrapper object. More... | |
| virtual NSWrapper * | Clone () const |
| Create a copy of this NSWrapper object. More... | |
| const arma::mat & | Dataset () const |
| Get a reference to the reference set. More... | |
| double | Epsilon () const |
| Get epsilon, the approximation parameter. More... | |
| double & | Epsilon () |
| Modify epsilon, the approximation parameter. More... | |
| virtual void | Search (util::Timers &timers, arma::mat &&querySet, const size_t k, arma::Mat< size_t > &neighbors, arma::mat &distances, const size_t, const double) |
| Perform bichromatic neighbor search (i.e. More... | |
| virtual void | Search (util::Timers &timers, const size_t k, arma::Mat< size_t > &neighbors, arma::mat &distances) |
| Perform monochromatic neighbor search (i.e. More... | |
| NeighborSearchMode | SearchMode () const |
| Get the search mode. More... | |
| NeighborSearchMode & | SearchMode () |
| Modify the search mode. More... | |
template < typename Archive > | |
| void | serialize (Archive &ar, const uint32_t) |
| Serialize the NeighborSearch model. More... | |
| virtual void | Train (util::Timers &timers, arma::mat &&referenceSet, const size_t, const double, const double) |
| Train the model with the given options. More... | |
Public Member Functions inherited from NSWrapperBase | |
| NSWrapperBase () | |
| Create the NSWrapperBase object. More... | |
| virtual | ~NSWrapperBase () |
| Destruct the NSWrapperBase (nothing to do). More... | |
Protected Types | |
| typedef NeighborSearch< SortPolicy, metric::EuclideanDistance, arma::mat, TreeType, DualTreeTraversalType, SingleTreeTraversalType > | NSType |
Protected Attributes | |
| NSType | ns |
| The instantiated NeighborSearch object that we are wrapping. More... | |
NSWrapper is a wrapper class for most NeighborSearch types.
Definition at line 102 of file ns_model.hpp.
|
protected |
Definition at line 173 of file ns_model.hpp.
|
inline |
Construct the NSWrapper object, initializing the internally-held NeighborSearch object.
Definition at line 107 of file ns_model.hpp.
|
inlinevirtual |
Delete the NSWrapper object.
Definition at line 115 of file ns_model.hpp.
|
inlinevirtual |
Create a copy of this NSWrapper object.
This correctly handles polymorphism.
Implements NSWrapperBase.
Reimplemented in SpillNSWrapper< SortPolicy >, and LeafSizeNSWrapper< SortPolicy, TreeType, DualTreeTraversalType, SingleTreeTraversalType >.
Definition at line 119 of file ns_model.hpp.
|
inlinevirtual |
Get a reference to the reference set.
Implements NSWrapperBase.
Definition at line 122 of file ns_model.hpp.
|
inlinevirtual |
Get epsilon, the approximation parameter.
Implements NSWrapperBase.
Definition at line 130 of file ns_model.hpp.
|
inlinevirtual |
Modify epsilon, the approximation parameter.
Implements NSWrapperBase.
Definition at line 132 of file ns_model.hpp.
|
virtual |
Perform bichromatic neighbor search (i.e.
search with a separate query set). For NSWrapper, we ignore the extra parameters.
Implements NSWrapperBase.
Reimplemented in SpillNSWrapper< SortPolicy >, and LeafSizeNSWrapper< SortPolicy, TreeType, DualTreeTraversalType, SingleTreeTraversalType >.
|
virtual |
Perform monochromatic neighbor search (i.e.
use the reference set as the query set).
Implements NSWrapperBase.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Serialize the NeighborSearch model.
Definition at line 161 of file ns_model.hpp.
|
virtual |
Train the model with the given options.
For NSWrapper, we ignore the extra parameters.
Implements NSWrapperBase.
Reimplemented in SpillNSWrapper< SortPolicy >, and LeafSizeNSWrapper< SortPolicy, TreeType, DualTreeTraversalType, SingleTreeTraversalType >.
|
protected |
The instantiated NeighborSearch object that we are wrapping.
Definition at line 176 of file ns_model.hpp.