|
knncolle
Collection of KNN methods in C++
|
Wrapper around a prebuilt index with L2 normalization. More...
#include <L2Normalized.hpp>


Public Member Functions | |
| L2NormalizedPrebuilt (std::unique_ptr< Prebuilt< Index_, Normalized_, Distance_ > > prebuilt) | |
| std::unique_ptr< Searcher< Index_, Data_, Distance_ > > | initialize () const |
Public Member Functions inherited from knncolle::Prebuilt< Index_, Data_, Distance_ > | |
| virtual Index_ | num_observations () const =0 |
| virtual std::size_t | num_dimensions () const =0 |
Wrapper around a prebuilt index with L2 normalization.
This class's unique_raw() method creates a Searcher instance that L2-normalizes each query vector, typically for calculation of cosine distances. Instances of this class are typically constructed with L2NormalizedBuilder::unique_raw().
| Index_ | Integer type for the indices. |
| Data_ | Floating-point type for the input and query data. |
| Distance_ | Floating-point type for the distances. |
| Normalized_ | Floating-point type for the L2-normalized data. |
|
inline |
| prebuilt | Pointer to a Prebuilt instance for the neighbor search that is to be wrapped. |
|
inlinevirtual |
Creates a L2NormalizedSearcher instance.
Implements knncolle::Prebuilt< Index_, Data_, Distance_ >.