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 Dim_ | num_dimensions () const =0 |
virtual std::unique_ptr< Searcher< Index_, Float_ > > | 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.
Dim_ | Integer type for the number of dimensions. For the output of Builder::build_raw() , this is set to Matrix_::dimension_type . |
Index_ | Integer type for the indices. For the output of Builder::build_raw() , this is set to Matrix_::index_type . |
Float_ | Floating point type for the query data and output distances. |
|
pure virtual |
Create a Searcher
for searching the index.
Searcher
instance. Implemented in knncolle::BruteforcePrebuilt< Distance_, Dim_, Index_, Store_, Float_ >, knncolle::KmknnPrebuilt< Distance_, Dim_, Index_, Store_, Float_ >, knncolle::L2NormalizedPrebuilt< Dim_, Index_, Float_ >, and knncolle::VptreePrebuilt< Distance_, Dim_, Index_, Store_, Float_ >.
|
pure virtual |
Implemented in knncolle::BruteforcePrebuilt< Distance_, Dim_, Index_, Store_, Float_ >, knncolle::KmknnPrebuilt< Distance_, Dim_, Index_, Store_, Float_ >, and knncolle::VptreePrebuilt< Distance_, Dim_, Index_, Store_, Float_ >.
|
pure virtual |
Implemented in knncolle::BruteforcePrebuilt< Distance_, Dim_, Index_, Store_, Float_ >, knncolle::KmknnPrebuilt< Distance_, Dim_, Index_, Store_, Float_ >, and knncolle::VptreePrebuilt< Distance_, Dim_, Index_, Store_, Float_ >.