Forward declaration. More...
Public Member Functions | |
LeafSizeRSWrapper (const bool singleMode, const bool naive) | |
Construct the LeafSizeRSWrapper by delegating to the RSWrapper constructor. More... | |
virtual | ~LeafSizeRSWrapper () |
Delete the LeafSizeRSWrapper. More... | |
virtual LeafSizeRSWrapper * | Clone () const |
Return a copy of the LeafSizeRSWrapper. 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 leafSize) |
Perform bichromatic search (e.g. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the RangeSearch model. More... | |
virtual void | Train (util::Timers &timers, arma::mat &&referenceSet, const size_t leafSize) |
Train a model with the given parameters. This overload uses leafSize. More... | |
Public Member Functions inherited from RSWrapper< TreeType > | |
RSWrapper (const bool singleMode, const bool naive) | |
Create the RSWrapper object. More... | |
virtual | ~RSWrapper () |
Destruct the RSWrapper (nothing to do). 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, 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... | |
Public Member Functions inherited from RSWrapperBase | |
RSWrapperBase () | |
Create the RSWrapperBase object. More... | |
virtual | ~RSWrapperBase () |
Destruct the RSWrapperBase (nothing to do). More... | |
Additional Inherited Members | |
Protected Types inherited from RSWrapper< TreeType > | |
typedef RangeSearch< metric::EuclideanDistance, arma::mat, TreeType > | RSType |
Protected Attributes inherited from RSWrapper< TreeType > | |
RSType | rs |
The instantiated RangeSearch object that we are wrapping. More... | |
Forward declaration.
LeafSizeRSWrapper wraps any RangeSearch type that needs to be able to take the leaf size into account when building trees.
The implementations of Train() and bichromatic Search() take this leaf size into account.
Definition at line 28 of file range_search.hpp.
|
inline |
Construct the LeafSizeRSWrapper by delegating to the RSWrapper constructor.
Definition at line 168 of file rs_model.hpp.
|
inlinevirtual |
Delete the LeafSizeRSWrapper.
Definition at line 175 of file rs_model.hpp.
|
inlinevirtual |
Return a copy of the LeafSizeRSWrapper.
Reimplemented from RSWrapper< TreeType >.
Definition at line 178 of file rs_model.hpp.
References RSWrapperBase::Search(), and RSWrapperBase::Train().
|
virtual |
Perform bichromatic search (e.g.
search with a separate query set). This overload takes the leaf size into account when building the query tree.
Reimplemented from RSWrapper< TreeType >.
|
inline |
Serialize the RangeSearch model.
Definition at line 199 of file rs_model.hpp.
|
virtual |
Train a model with the given parameters. This overload uses leafSize.
Reimplemented from RSWrapper< TreeType >.