RAWrapper is a wrapper class for most RASearch types. More...

Public Member Functions | |
| RAWrapper (const bool singleMode, const bool naive) | |
| Construct the RAWrapper object, initializing the internally-held RASearch object. More... | |
| virtual | ~RAWrapper () |
| Delete the RAWrapper object. More... | |
| double | Alpha () const |
| Get the value of alpha. More... | |
| double & | Alpha () |
| Modify the value of alpha. More... | |
| virtual RAWrapper * | Clone () const |
| Create a copy of this RAWrapper object. More... | |
| const arma::mat & | Dataset () const |
| Get a reference to the reference set. More... | |
| bool | FirstLeafExact () const |
| Get whether to do exact search at the first leaf. More... | |
| bool & | FirstLeafExact () |
| Modify whether to do exact search at the first leaf. More... | |
| bool | Naive () const |
| Get whether naive search is being used. More... | |
| bool & | Naive () |
| Modify whether naive search is being used. More... | |
| bool | SampleAtLeaves () const |
| Get whether to do sampling at leaves. More... | |
| bool & | SampleAtLeaves () |
| Modify whether to do sampling at leaves. 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) |
| 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... | |
template < typename Archive > | |
| void | serialize (Archive &ar, const uint32_t) |
| Serialize the RASearch 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... | |
| size_t | SingleSampleLimit () const |
| Get the single sample limit. More... | |
| size_t & | SingleSampleLimit () |
| Modify the single sample limit. More... | |
| double | Tau () const |
| Get the value of tau. More... | |
| double & | Tau () |
| Modify the value of tau. More... | |
| virtual void | Train (util::Timers &timers, arma::mat &&referenceSet, const size_t) |
| Train the model. For RAWrapper, we ignore the leaf size. More... | |
Public Member Functions inherited from RAWrapperBase | |
| RAWrapperBase () | |
| Create the RAWrapperBase object. More... | |
| virtual | ~RAWrapperBase () |
| Destruct the RAWrapperBase (nothing to do). More... | |
Protected Types | |
| typedef RASearch< NearestNeighborSort, metric::EuclideanDistance, arma::mat, TreeType > | RAType |
Protected Attributes | |
| RAType | ra |
| The instantiated RASearch object that we are wrapping. More... | |
RAWrapper is a wrapper class for most RASearch types.
Definition at line 112 of file ra_model.hpp.
|
protected |
Definition at line 200 of file ra_model.hpp.
|
inline |
Construct the RAWrapper object, initializing the internally-held RASearch object.
Definition at line 117 of file ra_model.hpp.
|
inlinevirtual |
Delete the RAWrapper object.
Definition at line 124 of file ra_model.hpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Create a copy of this RAWrapper object.
This correctly handles polymorphism.
Implements RAWrapperBase.
Reimplemented in LeafSizeRAWrapper< TreeType >.
Definition at line 128 of file ra_model.hpp.
|
inlinevirtual |
Get a reference to the reference set.
Implements RAWrapperBase.
Definition at line 131 of file ra_model.hpp.
|
inlinevirtual |
Get whether to do exact search at the first leaf.
Implements RAWrapperBase.
Definition at line 139 of file ra_model.hpp.
|
inlinevirtual |
Modify whether to do exact search at the first leaf.
Implements RAWrapperBase.
Definition at line 141 of file ra_model.hpp.
|
inlinevirtual |
Get whether naive search is being used.
Implements RAWrapperBase.
Definition at line 164 of file ra_model.hpp.
|
inlinevirtual |
Modify whether naive search is being used.
Implements RAWrapperBase.
Definition at line 166 of file ra_model.hpp.
References RAWrapperBase::Search(), and RAWrapperBase::Train().
|
inlinevirtual |
Get whether to do sampling at leaves.
Implements RAWrapperBase.
Definition at line 144 of file ra_model.hpp.
|
inlinevirtual |
Modify whether to do sampling at leaves.
Implements RAWrapperBase.
Definition at line 146 of file ra_model.hpp.
|
virtual |
Perform bichromatic neighbor search (i.e.
search with a separate query set). For RAWrapper, we ignore the leaf size.
Implements RAWrapperBase.
Reimplemented in LeafSizeRAWrapper< TreeType >.
|
virtual |
Perform monochromatic neighbor search (i.e.
search where the reference set is used as the query set).
Implements RAWrapperBase.
|
inline |
Serialize the RASearch model.
Definition at line 191 of file ra_model.hpp.
|
inlinevirtual |
Get whether single-tree search is being used.
Implements RAWrapperBase.
Definition at line 159 of file ra_model.hpp.
|
inlinevirtual |
Modify whether single-tree search is being used.
Implements RAWrapperBase.
Definition at line 161 of file ra_model.hpp.
|
inlinevirtual |
|
inlinevirtual |
Modify the single sample limit.
Implements RAWrapperBase.
Definition at line 136 of file ra_model.hpp.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Train the model. For RAWrapper, we ignore the leaf size.
Implements RAWrapperBase.
Reimplemented in LeafSizeRAWrapper< TreeType >.
|
protected |
The instantiated RASearch object that we are wrapping.
Definition at line 203 of file ra_model.hpp.