#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

#226 in Biology

Download history 21/week @ 2024-06-10 25/week @ 2024-06-17 14/week @ 2024-06-24 8/week @ 2024-07-01 8/week @ 2024-07-15 49/week @ 2024-07-29 5/week @ 2024-08-05 17/week @ 2024-08-26 10/week @ 2024-09-02 25/week @ 2024-09-16 59/week @ 2024-09-23

105 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