#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

#239 in Biology

Download history 23/week @ 2024-08-30 20/week @ 2024-09-13 16/week @ 2024-09-20 61/week @ 2024-09-27 39/week @ 2024-10-04 1/week @ 2024-10-11 1/week @ 2024-10-25 14/week @ 2024-11-01 13/week @ 2024-11-08 12/week @ 2024-11-15 1/week @ 2024-11-22 14/week @ 2024-11-29 41/week @ 2024-12-06 18/week @ 2024-12-13

74 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
~15K SLoC