Struct analiticcl::types::Distance [−][src]
pub struct Distance { pub ld: CharIndexType, pub lcs: u16, pub prefixlen: u16, pub suffixlen: u16, pub freq: u32, pub lex: f32, pub samecase: bool, }
Fields
ld: CharIndexType
Levenshtein (or Damarau-Levenshtein) distance
lcs: u16
Longest common substring length
prefixlen: u16
Common prefix length
suffixlen: u16
Common suffix length
freq: u32
Absolute frequency count
lex: f32
Lexicon weight (usually simply 1.0 if an item is in a validated lexicon, and 0.0 if in a background corpus)
samecase: bool
Is the casing different or not?
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Distance
impl RefUnwindSafe for Distance
impl UnwindSafe for Distance
impl UnwindSafe for Distance