Struct count_min_sketch::CountMinSketch32
[−]
[src]
pub struct CountMinSketch32<K> { /* fields omitted */ }
Methods
impl<K> CountMinSketch32<K> where
K: Hash,
[src]
K: Hash,
fn new(
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<Self, &'static str>
[src]
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<Self, &'static str>
fn add<Q: ?Sized>(&mut self, key: &Q, value: u32) where
Q: Hash,
K: Borrow<Q>,
[src]
Q: Hash,
K: Borrow<Q>,
fn increment<Q: ?Sized>(&mut self, key: &Q) where
Q: Hash,
K: Borrow<Q>,
[src]
Q: Hash,
K: Borrow<Q>,
fn estimate<Q: ?Sized>(&self, key: &Q) -> u32 where
Q: Hash,
K: Borrow<Q>,
[src]
Q: Hash,
K: Borrow<Q>,
fn estimate_memory(
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<usize, &'static str>
[src]
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<usize, &'static str>