Registry / other / knncolle-kmknn

knncolle-kmknn

JSON →
library0.2.0vcpkgunverified

knncolle bindings for KMKNN search

vcpkg install knncolle-kmknn
INSTALL
IMPORT
SIG · KNNCOLLE-KMKNN
K
knncolle-kmknn
othercppv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

knncolle/knncolle.hpp
#include <knncolle/knncolle.hpp>

Build a KMKNN index and find nearest neighbors

#include <knncolle/knncolle.hpp> #include <vector> #include <iostream> int main() { std::vector<double> data = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0}; auto index = knncolle::build_index(3, 2, data.data()); auto results = index->find_nearest_neighbors(data.data(), 2); for (auto& r : results) { std::cout << "Index: " << r.first << ", Distance: " << r.second << std::endl; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

knncolle-kmknn — pip install knncolle-kmknn · libregistry