pub struct RatcliffObershelp {}Expand description
Ratcliff/Obershelp similarity is LCSStr that recursively finds matches
on both sides of the longest substring.
The non-normalized result is a double number of matching characters defined as the first longest common substring plus recursively the number of matching characters in the non-matching regions on both sides of the longest common substring.
The normalized result is the non-normalized one divided by the sum of the input string lengths.
Trait Implementations§
Source§impl Algorithm<usize> for RatcliffObershelp
impl Algorithm<usize> for RatcliffObershelp
Source§fn for_vec<E: Eq>(&self, s1: &[E], s2: &[E]) -> Result<usize>
fn for_vec<E: Eq>(&self, s1: &[E], s2: &[E]) -> Result<usize>
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
Source§impl Default for RatcliffObershelp
impl Default for RatcliffObershelp
Source§fn default() -> RatcliffObershelp
fn default() -> RatcliffObershelp
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RatcliffObershelp
impl RefUnwindSafe for RatcliffObershelp
impl Send for RatcliffObershelp
impl Sync for RatcliffObershelp
impl Unpin for RatcliffObershelp
impl UnwindSafe for RatcliffObershelp
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