knncolle
Collection of KNN methods in C++
|
Index for a brute-force nearest neighbor search. More...
#include <Bruteforce.hpp>
Public Member Functions | |
std::size_t | num_dimensions () const |
Index_ | num_observations () const |
std::unique_ptr< Searcher< Index_, Data_, Distance_ > > | initialize () const |
![]() |
Friends | |
class | BruteforceSearcher< Index_, Data_, Distance_, DistanceMetric_ > |
Index for a brute-force nearest neighbor search.
Instances of this class are usually constructed using BruteforceBuilder::build_raw()
.
Index_ | Integer type for the indices. |
Data_ | Numeric type for the input and query data. |
Distance_ | Floating point type for the distances. |
DistanceMetric_ | Class implementing the distance metric calculation. This should satisfy the DistanceMetric interface. |
|
inlinevirtual |
Creates a BruteforceSearcher
instance.
Implements knncolle::Prebuilt< Index_, Data_, Distance_ >.
|
inlinevirtual |
Implements knncolle::Prebuilt< Index_, Data_, Distance_ >.
|
inlinevirtual |
Implements knncolle::Prebuilt< Index_, Data_, Distance_ >.