| Crates.io | sorensen |
| lib.rs | sorensen |
| version | 0.2.0 |
| created_at | 2019-04-04 19:16:10.28471+00 |
| updated_at | 2024-01-26 23:55:32.67139+00 |
| description | Sørensen–Dice coefficient implementation for Rust. |
| homepage | |
| repository | https://github.com/co-yo-ne-da/sorensen |
| max_upload_size | |
| id | 125861 |
| size | 44,745 |
Sørensen–Dice coefficient implementation for Rust.
extern crate sorensen;
use sorensen::distance;
let string = "night";
let string_to_compare = "nacht";
let dst: f64 = distance(string.as_bytes(), string_to_compare.as_bytes()); // 0.25