Searched refs:sorensen_dice (Results 1 – 3 of 3) sorted by relevance
/third_party/rust/crates/strsim-rs/src/ |
D | lib.rs | 433 pub fn sorensen_dice(a: &str, b: &str) -> f64 { in sorensen_dice() function 957 assert_eq!(1.0, sorensen_dice("a", "a")); in sorensen_dice_all() 958 assert_eq!(0.0, sorensen_dice("a", "b")); in sorensen_dice_all() 959 assert_eq!(1.0, sorensen_dice("", "")); in sorensen_dice_all() 960 assert_eq!(0.0, sorensen_dice("a", "")); in sorensen_dice_all() 961 assert_eq!(0.0, sorensen_dice("", "a")); in sorensen_dice_all() 962 assert_eq!(1.0, sorensen_dice("apple event", "apple event")); in sorensen_dice_all() 963 assert_eq!(0.9090909090909091, sorensen_dice("iphone", "iphone x")); in sorensen_dice_all() 964 assert_eq!(0.0, sorensen_dice("french", "quebec")); in sorensen_dice_all() 965 assert_eq!(1.0, sorensen_dice("france", "france")); in sorensen_dice_all() [all …]
|
/third_party/rust/crates/strsim-rs/ |
D | README.md | 42 jaro_winkler, sorensen_dice}; 67 assert_eq!(sorensen_dice("web applications", "applications of the web"),
|
/third_party/rust/crates/strsim-rs/benches/ |
D | benches.rs | 97 strsim::sorensen_dice(&a, &b); in bench_sorensen_dice()
|