Distances (v1.0.1)

Fast and generic distance functions for high-dimensional data.

Usage

Add this to your project:

```shell

cargo add distances@1.0.1 ```

Use it in your project:

```rust use distances::Number; use distances::vectors::euclidean;

let a = [1.0f32, 2.0, 3.0]; let b = [4.0f32, 5.0, 6.0];

let distance: f32 = euclidean(&a, &b);

assert!((distance - (27.0_f32).sqrt()).abs() < 1e-6); ```

Features

Available Distance Functions

Contributing

Contributions are welcome, encouraged, and appreciated! See CONTRIBUTING.md.

License

Licensed under the MIT license.