pub struct SorensenDice {}Expand description
Sørensen–Dice similarity is a ratio of common chars to total chars in the given strings.
Trait Implementations§
Source§impl Algorithm<f64> for SorensenDice
impl Algorithm<f64> for SorensenDice
Source§fn for_iter<C, E>(&self, s1: C, s2: C) -> Result<f64>
fn for_iter<C, E>(&self, s1: C, s2: C) -> Result<f64>
Calculate distance/similarity for iterators. Read more
Source§fn for_vec<E>(&self, s1: &[E], s2: &[E]) -> Result<R>
fn for_vec<E>(&self, s1: &[E], s2: &[E]) -> Result<R>
Calculate distance/similarity for vectors. 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 SorensenDice
impl Default for SorensenDice
Source§fn default() -> SorensenDice
fn default() -> SorensenDice
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SorensenDice
impl RefUnwindSafe for SorensenDice
impl Send for SorensenDice
impl Sync for SorensenDice
impl Unpin for SorensenDice
impl UnwindSafe for SorensenDice
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