knncolle_annoy
Annoy nearest neighbors in knncolle
|
Searcher on an Annoy index. More...
#include <knncolle_annoy.hpp>
Public Member Functions | |
void | search (Index_ i, Index_ k, std::vector< Index_ > *output_indices, std::vector< Float_ > *output_distances) |
void | search (const Float_ *query, Index_ k, std::vector< Index_ > *output_indices, std::vector< Float_ > *output_distances) |
Public Member Functions inherited from knncolle::Searcher< Index_, Float_ > | |
virtual bool | can_search_all () const |
virtual Index_ | search_all (Index_ i, Float_ distance, std::vector< Index_ > *output_indices, std::vector< Float_ > *output_distances) |
virtual Index_ | search_all (const Float_ *query, Float_ distance, std::vector< Index_ > *output_indices, std::vector< Float_ > *output_distances) |
Searcher on an Annoy index.
Instances of this class are usually constructed using AnnoyPrebuilt::initialize()
.
Distance_ | An Annoy class to compute the distance between vectors, e.g., Annoy::Euclidean . |
Dim_ | Integer type for the number of dimensions. |
Index_ | Integer type for the indices. |
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 |
Implements knncolle::Searcher< Index_, Float_ >.
|
inlinevirtual |
Implements knncolle::Searcher< Index_, Float_ >.