#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

#238 in Biology

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