knncolle_hnsw
knncolle bindings for HNSW
Loading...
Searching...
No Matches
distances.hpp File Reference

Distance classes for HNSW. More...

#include <functional>
#include <cstddef>
#include <type_traits>

Go to the source code of this file.

Classes

struct  knncolle_hnsw::DistanceConfig< Distance_, HnswData_ >
 Distance configuration for the HNSW index. More...
 
class  knncolle_hnsw::ManhattanDistance< HnswData_ >
 Manhattan distance. More...
 
class  knncolle_hnsw::SquaredEuclideanDistance< HnswData_ >
 Squared Euclidean distance. More...
 

Namespaces

namespace  knncolle_hnsw
 knncolle bindings for HNSW search.
 

Enumerations

enum class  knncolle_hnsw::DistanceNormalizeMethod : char { SQRT , CUSTOM , NONE }
 

Functions

template<typename Distance_ , typename HnswData_ >
DistanceConfig< Distance_, HnswData_ > knncolle_hnsw::configure_euclidean_distance ()
 
template<typename Distance_ , typename HnswData_ >
DistanceConfig< Distance_, HnswData_ > knncolle_hnsw::configure_manhattan_distance ()
 
template<typename HnswData_ >
const char * knncolle_hnsw::get_distance_name (const hnswlib::SpaceInterface< HnswData_ > *distance)
 

Detailed Description

Distance classes for HNSW.