Registry / other / kiddo
library5.3.0rscratesunverified

High-performance, flexible, ergonomic k-d tree library for nearest-neighbor queries.

# Cargo.toml [dependencies] kiddo = "5.3.0"
INSTALL
IMPORT
SIG · KIDDO
K
kiddo
otherrustv5.3.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.

KdTree
use kiddo::KdTree;

Build a 2D k-d tree and query nearest neighbor.

use kiddo::KdTree; use kiddo::distance::squared_euclidean; fn main() { let mut tree: KdTree<f64, 2> = KdTree::new(); tree.add(&[1.0, 2.0], 0).unwrap(); let nearest = tree.nearest_one(&[1.5, 2.5], &squared_euclidean); println!("{:?}", nearest); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
kiddo — cargo add kiddo · libregistry