Searched refs:jaro_winkler (Results 1 – 4 of 4) sorted by relevance
/third_party/rust/crates/strsim-rs/src/ |
D | lib.rs | 188 pub fn jaro_winkler(a: &str, b: &str) -> f64 { in jaro_winkler() function 612 assert_eq!(1.0, jaro_winkler("", "")); in jaro_winkler_both_empty() 617 assert_eq!(0.0, jaro_winkler("", "jaro-winkler")); in jaro_winkler_first_empty() 622 assert_eq!(0.0, jaro_winkler("distance", "")); in jaro_winkler_second_empty() 627 assert_eq!(1.0, jaro_winkler("Jaro-Winkler", "Jaro-Winkler")); in jaro_winkler_same() 632 assert!((0.89 - jaro_winkler("testabctest", "testöঙ香test")).abs() < in jaro_winkler_multibyte() 634 assert!((0.89 - jaro_winkler("testöঙ香test", "testabctest")).abs() < in jaro_winkler_multibyte() 640 assert!((0.813 - jaro_winkler("dixon", "dicksonx")).abs() < 0.001); in jaro_winkler_diff_short() 641 assert!((0.813 - jaro_winkler("dicksonx", "dixon")).abs() < 0.001); in jaro_winkler_diff_short() 646 assert_eq!(0.0, jaro_winkler("a", "b")); in jaro_winkler_diff_one_character() [all …]
|
/third_party/rust/crates/strsim-rs/tests/ |
D | lib.rs | 4 normalized_damerau_levenshtein, jaro, jaro_winkler}; 47 assert!((0.911 - jaro_winkler("cheeseburger", "cheese fries")).abs() < in jaro_winkler_works()
|
/third_party/rust/crates/strsim-rs/ |
D | README.md | 42 jaro_winkler, sorensen_dice}; 64 assert!((jaro_winkler("cheeseburger", "cheese fries") - 0.911).abs() <
|
/third_party/rust/crates/strsim-rs/benches/ |
D | benches.rs | 36 strsim::jaro_winkler(&a, &b); in bench_jaro_winkler()
|