knncolle
Collection of KNN methods in C++
|
Index for a brute-force nearest neighbor search. More...
#include <Bruteforce.hpp>
Public Member Functions | |
Dim_ | num_dimensions () const |
Index_ | num_observations () const |
std::unique_ptr< Searcher< Index_, Float_ > > | initialize () const |
Friends | |
class | BruteforceSearcher< Distance_, Dim_, Index_, Store_, Float_ > |
Index for a brute-force nearest neighbor search.
Instances of this class are usually constructed using BruteforceBuilder::build_raw()
.
Distance_ | A distance calculation class satisfying the MockDistance contract. |
Dim_ | Integer type for the number of dimensions. For the output of BruteforceBuilder::build_raw() , this is set to Matrix_::dimension_type . |
Index_ | Integer type for the indices. For the output of BruteforceBuilder::build_raw() , this is set to Matrix_::index_type . |
Store_ | Floating point type for the stored data. For the output of BruteforceBuilder::build_raw() , this is set to Matrix_::data_type . This may be set to a lower-precision type than Float_ to save memory. |
Float_ | Floating point type for the query data and output distances. |
|
inlinevirtual |
Creates a BruteforceSearcher
instance.
Implements knncolle::Prebuilt< Dim_, Index_, Float_ >.
|
inlinevirtual |
Implements knncolle::Prebuilt< Dim_, Index_, Float_ >.
|
inlinevirtual |
Implements knncolle::Prebuilt< Dim_, Index_, Float_ >.