mlpack
|
Forward declaration. More...
#include <range_search.hpp>
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. | |
virtual LeafSizeRSWrapper * | Clone () const |
Return a copy of the LeafSizeRSWrapper. | |
virtual void | Train (arma::mat &&referenceSet, const size_t leafSize) |
Train a model with the given parameters. This overload uses leafSize. | |
virtual void | Search (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. | |
![]() | |
RSWrapper (const bool singleMode, const bool naive) | |
Create the RSWrapper object. | |
virtual | ~RSWrapper () |
Destruct the RSWrapper (nothing to do). | |
const arma::mat & | Dataset () const |
Get the dataset. | |
bool | SingleMode () const |
Get whether single-tree search is being used. | |
bool & | SingleMode () |
Modify whether single-tree search is being used. | |
bool | Naive () const |
Get whether naive search is being used. | |
bool & | Naive () |
Modify whether naive search is being used. | |
virtual void | Search (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. | |
![]() | |
RSWrapperBase () | |
Create the RSWrapperBase object. More... | |
virtual | ~RSWrapperBase () |
Destruct the RSWrapperBase (nothing to do). | |
Additional Inherited Members | |
![]() | |
typedef RangeSearch< metric::EuclideanDistance, arma::mat, TreeType > | RSType |
![]() | |
RSType | rs |
The instantiated RangeSearch object that we are wrapping. | |
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.
|
inline |
Construct the LeafSizeRSWrapper by delegating to the RSWrapper constructor.
|
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 mlpack::range::RSWrapper< TreeType >.