|
knncolle_hnsw
knncolle bindings for HNSW
|
Distance configuration for the HNSW index. More...
#include <distances.hpp>
Public Attributes | |
| std::function< hnswlib::SpaceInterface< HnswData_ > *(std::size_t)> | create |
| DistanceNormalizeMethod | normalize_method |
| std::function< Distance_(Distance_)> | custom_normalize |
Distance configuration for the HNSW index.
| Distance_ | Floating-point type for the distances. |
| HnswData_ | Floating-point type for data in the HNSW index. |
| std::function<hnswlib::SpaceInterface<HnswData_>*(std::size_t)> knncolle_hnsw::DistanceConfig< Distance_, HnswData_ >::create |
Function that returns a pointer to a hnswlib::SpaceInterface instance, given the number of dimensions.
| std::function<Distance_(Distance_)> knncolle_hnsw::DistanceConfig< Distance_, HnswData_ >::custom_normalize |
Normalization function to convert the output of hnswlib::SpaceInterface::get_dist_func() into actual distances. This must be provided if normalize_method = DistanceNormalizeMethod::CUSTOM, otherwise it is ignored.
| DistanceNormalizeMethod knncolle_hnsw::DistanceConfig< Distance_, HnswData_ >::normalize_method |
Method for normalizing distances.