|
knncolle
Collection of KNN methods in C++
|
Interface for prebuilt nearest-neighbor search indices. More...
#include <Prebuilt.hpp>

Public Member Functions | |
| virtual Index_ | num_observations () const =0 |
| virtual std::size_t | num_dimensions () const =0 |
| virtual std::unique_ptr< Searcher< Index_, Data_, Distance_ > > | initialize () const =0 |
Interface for prebuilt nearest-neighbor search indices.
Instances of Prebuilt subclasses are typically constructed with Builder::build_raw(). Note that a Prebuilt instance may outlive the Builder object used to generate it, so the former should not hold any references to the latter.
| Index_ | Integer type for the observation indices. |
| Data_ | Numeric type for the query data. |
| Distance_ | Floating point type for the distances. |
|
pure virtual |
Create a Searcher for searching the index.
Searcher instance. Implemented in knncolle::BruteforcePrebuilt< Index_, Data_, Distance_, DistanceMetric_ >, knncolle::L2NormalizedPrebuilt< Index_, Data_, Distance_, Normalized_ >, and knncolle::VptreePrebuilt< Index_, Data_, Distance_, DistanceMetric_ >.
|
pure virtual |
Implemented in knncolle::BruteforcePrebuilt< Index_, Data_, Distance_, DistanceMetric_ >, and knncolle::VptreePrebuilt< Index_, Data_, Distance_, DistanceMetric_ >.
|
pure virtual |
Implemented in knncolle::BruteforcePrebuilt< Index_, Data_, Distance_, DistanceMetric_ >, and knncolle::VptreePrebuilt< Index_, Data_, Distance_, DistanceMetric_ >.