GitXplorerGitXplorer
t

acap

public
21 stars
4 forks
4 issues

Commits

List of commits on branch main.
Unverified
17f118fbc74a26f55a5263e616faeb20368de9d0

Derive Eq in more cases

ttavianator committed 2 years ago
Unverified
4410d88d7a74cacf704d2fd4851db770da542fd4

coords: Implement for all arrays using const generics

ttavianator committed 3 years ago
Unverified
e7b3250dd45b00fe6b49a7bed12410575e1ac274

Update dependencies

ttavianator committed 3 years ago
Unverified
3c6b512b88edf359b76ed0b2bee1cad88b8b9b19

Bump the version to 0.3.0

ttavianator committed 3 years ago
Unverified
32ae82214c7c06744f1e8bc0f2789551087a20fe

ci: Switch to GitHub Actions

ttavianator committed 3 years ago
Unverified
d64807aab65a4e25012c639b28d5ac60e24dac32

Bump the edition to 2021

ttavianator committed 3 years ago

README

The README file for this repository.

acap

crates.io Documentation License CI Status

As Close As Possible — nearest neighbor search in Rust.

Example

use acap::euclid::Euclidean;
use acap::vp::VpTree;
use acap::NearestNeighbors;

let tree = VpTree::balanced(vec![
    Euclidean([3, 4]),
    Euclidean([5, 12]),
    Euclidean([8, 15]),
    Euclidean([7, 24]),
]);

let nearest = tree.nearest(&[7, 7]).unwrap();
assert_eq!(nearest.item, &Euclidean([3, 4]));
assert_eq!(nearest.distance, 5);