|
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< Distance_ > *output_distances) |
| void | search (const Data_ *query, Index_ k, std::vector< Index_ > *output_indices, std::vector< Distance_ > *output_distances) |
Public Member Functions inherited from knncolle::Searcher< Index_, Data_, Distance_ > | |
| virtual bool | can_search_all () const |
| virtual Index_ | search_all (Index_ i, Distance_ distance, std::vector< Index_ > *output_indices, std::vector< Distance_ > *output_distances) |
| virtual Index_ | search_all (const Data_ *query, Distance_ distance, std::vector< Index_ > *output_indices, std::vector< Distance_ > *output_distances) |
Searcher on an Annoy index.
Instances of this class are usually constructed using AnnoyPrebuilt::initialize().
| Index_ | Integer type for the observation indices. |
| Data_ | Numeric type for the input and query data. |
| Distance_ | Floating-point type for the distances. |
| AnnoyDistance_ | An Annoy-compatible class to compute the distance between vectors, e.g., Annoy::Euclidean, Annoy::Manhattan. Note that this is not the same as knncolle::DistanceMetric. |
| AnnoyIndex_ | Integer type for the observation indices in the Annoy index. |
| AnnoyData_ | Floating-point type for data in the Annoy index. This defaults to a float instead of a double to sacrifice some accuracy for performance. |
| AnnoyRng_ | An Annoy class for random number generation. |
| AnnoyThreadPolicy_ | An Annoy class for the threadedness of Annoy index building. |
|
inlinevirtual |
Implements knncolle::Searcher< Index_, Data_, Distance_ >.
|
inlinevirtual |
Implements knncolle::Searcher< Index_, Data_, Distance_ >.