Function distance::sift3
[−]
[src]
pub fn sift3(s: &str, t: &str) -> f32
Calculates the sift3 distance between two strings with a default max_distance of 5.
Sift3
Sift3 - super fast and accurate string distance algorithm. The higher the return value, the more different the two strings are. A value of 0.0 means both strings are equal.
This implementation does fully support unicode strings.
Examples
use distance::*; // Sift3 distance let distance = sift3("hannah", "hanna"); assert_eq!(0.5, distance);