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