RSWrapper is a wrapper class for most RangeSearch types. More...
Public Member Functions | |
RSWrapper (const bool singleMode, const bool naive) | |
Create the RSWrapper object. More... | |
virtual | ~RSWrapper () |
Destruct the RSWrapper (nothing to do). More... | |
virtual RSWrapper * | Clone () const |
Create a new RSWrapper that is the same as this one. More... | |
const arma::mat & | Dataset () const |
Get the dataset. More... | |
bool | Naive () const |
Get whether naive search is being used. More... | |
bool & | Naive () |
Modify whether naive search is being used. More... | |
virtual void | Search (util::Timers &timers, arma::mat &&querySet, const math::Range &range, std::vector< std::vector< size_t >> &neighbors, std::vector< std::vector< double >> &distances, const size_t) |
Perform bichromatic range search (i.e. More... | |
virtual void | Search (util::Timers &timers, const math::Range &range, std::vector< std::vector< size_t >> &neighbors, std::vector< std::vector< double >> &distances) |
Perform monochromatic range search (i.e. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the RangeSearch model. More... | |
bool | SingleMode () const |
Get whether single-tree search is being used. More... | |
bool & | SingleMode () |
Modify whether single-tree search is being used. More... | |
virtual void | Train (util::Timers &timers, arma::mat &&referenceSet, const size_t) |
Train the model (build the reference tree if needed). More... | |
Public Member Functions inherited from RSWrapperBase | |
RSWrapperBase () | |
Create the RSWrapperBase object. More... | |
virtual | ~RSWrapperBase () |
Destruct the RSWrapperBase (nothing to do). More... | |
Protected Types | |
typedef RangeSearch< metric::EuclideanDistance, arma::mat, TreeType > | RSType |
Protected Attributes | |
RSType | rs |
The instantiated RangeSearch object that we are wrapping. More... | |
RSWrapper is a wrapper class for most RangeSearch types.
Definition at line 89 of file rs_model.hpp.
|
protected |
Definition at line 149 of file rs_model.hpp.
|
inline |
Create the RSWrapper object.
Definition at line 93 of file rs_model.hpp.
|
inlinevirtual |
Destruct the RSWrapper (nothing to do).
Definition at line 104 of file rs_model.hpp.
|
inlinevirtual |
Create a new RSWrapper that is the same as this one.
This function will properly handle polymorphism.
Implements RSWrapperBase.
Reimplemented in LeafSizeRSWrapper< TreeType >.
Definition at line 101 of file rs_model.hpp.
|
inlinevirtual |
|
inlinevirtual |
Get whether naive search is being used.
Implements RSWrapperBase.
Definition at line 115 of file rs_model.hpp.
|
inlinevirtual |
Modify whether naive search is being used.
Implements RSWrapperBase.
Definition at line 117 of file rs_model.hpp.
References RSWrapperBase::Search(), and RSWrapperBase::Train().
|
virtual |
Perform bichromatic range search (i.e.
a search with a separate query set). This ignores the leaf size.
Implements RSWrapperBase.
Reimplemented in LeafSizeRSWrapper< TreeType >.
|
virtual |
Perform monochromatic range search (i.e.
a search with the reference set as the query set).
Implements RSWrapperBase.
|
inline |
Serialize the RangeSearch model.
Definition at line 143 of file rs_model.hpp.
|
inlinevirtual |
Get whether single-tree search is being used.
Implements RSWrapperBase.
Definition at line 110 of file rs_model.hpp.
|
inlinevirtual |
Modify whether single-tree search is being used.
Implements RSWrapperBase.
Definition at line 112 of file rs_model.hpp.
|
virtual |
Train the model (build the reference tree if needed).
This ignores the leaf size.
Implements RSWrapperBase.
Reimplemented in LeafSizeRSWrapper< TreeType >.
|
protected |
The instantiated RangeSearch object that we are wrapping.
Definition at line 152 of file rs_model.hpp.