#coefficients #distance #sørensen–dice

sorensen

Sørensen–Dice coefficient implementation for Rust

1 unstable release

0.2.1 Jan 26, 2024
0.2.0 Jan 26, 2024
0.1.5 Jan 26, 2024
0.1.3 Apr 7, 2019

#272 in Biology

Download history 17/week @ 2024-11-13 7/week @ 2024-11-27 29/week @ 2024-12-04 38/week @ 2024-12-11 33/week @ 2025-01-01 15/week @ 2025-01-08 19/week @ 2025-01-29 11/week @ 2025-02-05 3/week @ 2025-02-12 21/week @ 2025-02-19 24/week @ 2025-02-26

61 downloads per month

GPL-3.0-or-later

16KB
63 lines

Sorensen

Sørensen–Dice coefficient implementation for Rust.

CI

v0.2.0

Usage

   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

Dependencies

~1MB
~16K SLoC