knncolle_annoy
Annoy nearest neighbors in knncolle
|
Prebuilt index for an Annoy search. More...
#include <knncolle_annoy.hpp>
Public Member Functions | |
Dim_ | num_dimensions () const |
Index_ | num_observations () const |
std::unique_ptr< knncolle::Searcher< Index_, Float_ > > | initialize () const |
Friends | |
class | AnnoySearcher< Distance_, Dim_, Index_, Float_, InternalIndex_, InternalData_ > |
Prebuilt index for an Annoy search.
Instances of this class are usually constructed using AnnoyBuilder::build_raw()
.
Distance_ | An Annoy class to compute the distance between vectors, e.g., Annoy::Euclidean . |
Dim_ | Integer type for the number of dimensions. For the output of AnnoyBuilder::build_raw() , this is set to Matrix_::dimension_type . |
Index_ | Integer type for the indices. For the output of AnnoyBuilder::build_raw() , this is set to Matrix_::index_type . |
Float_ | Floating point type for the query data and output distances. |
InternalIndex_ | Integer type for the internal indices in Annoy. |
InternalData_ | Floating point type for the internal data in Annoy. |
|
inlinevirtual |
Creates an AnnoySearcher
instance.
Implements knncolle::Prebuilt< Dim_, Index_, Float_ >.
|
inlinevirtual |
Implements knncolle::Prebuilt< Dim_, Index_, Float_ >.
|
inlinevirtual |
Implements knncolle::Prebuilt< Dim_, Index_, Float_ >.