Registry / utility / knncolle

knncolle

JSON →
library3.1.0vcpkgunverified

Collection of KNN algorithms in C++

vcpkg install knncolle
INSTALL
IMPORT
SIG · KNNCOLLE
K
knncolle
utilitycppv3.1.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>

Find nearest neighbors using VP-tree algorithm

#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::VpTreeEuclidean<>(2, 3, data.data()); auto results = index->find_nearest_neighbors(data.data(), 2); std::cout << "Found " << results.size() << " neighbors.\n"; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

knncolle — pip install knncolle · libregistry