Struct hamming_lsh::HammingHasher [−][src]
pub struct HammingHasher<const B: usize, const H: usize> { /* fields omitted */ }
Expand description
This structure allows one to generate balanced locality-sensitive hashes.
B
is the number of bytes in the codewords.
H
is the number of bytes in the hash.
Implementations
pub fn hash_bag<'a>(
&self,
features: impl IntoIterator<Item = &'a BitArray<B>>
) -> BitArray<H>
pub fn hash_bag<'a>(
&self,
features: impl IntoIterator<Item = &'a BitArray<B>>
) -> BitArray<H>
Convert the input features into a hash.
Trait Implementations
Auto Trait Implementations
impl<const B: usize, const H: usize> Send for HammingHasher<B, H>
impl<const B: usize, const H: usize> Sync for HammingHasher<B, H>
impl<const B: usize, const H: usize> Unpin for HammingHasher<B, H>
Blanket Implementations
Mutably borrows from an owned value. Read more