pub struct Jaro {}Expand description
Jaro similarity is calculated based on the number of transpositions to turn one string into the other.
The metric is always normalized on the interval from 0.0 to 1.0.
See also JaroWinkler.
Trait Implementations§
Source§impl Algorithm<f64> for Jaro
impl Algorithm<f64> for Jaro
Source§fn for_vec<E: Eq>(&self, s1: &[E], s2: &[E]) -> Result<f64>
fn for_vec<E: Eq>(&self, s1: &[E], s2: &[E]) -> Result<f64>
Calculate distance/similarity for vectors. Read more
Source§fn for_iter<C, E>(&self, s1: C, s2: C) -> Result<R>
fn for_iter<C, E>(&self, s1: C, s2: C) -> Result<R>
Calculate distance/similarity for iterators. Read more
Source§fn for_str(&self, s1: &str, s2: &str) -> Result<R>
fn for_str(&self, s1: &str, s2: &str) -> Result<R>
Calculate distance/similarity for strings. Read more
Auto Trait Implementations§
impl Freeze for Jaro
impl RefUnwindSafe for Jaro
impl Send for Jaro
impl Sync for Jaro
impl Unpin for Jaro
impl UnwindSafe for Jaro
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more