pub struct HyperLogLog { /* private fields */ }Expand description
HyperLogLog cardinality estimator.
Uses b-bit register index (2^b registers) to estimate set cardinality with relative error approximately 1.04 / sqrt(2^b).
Implementations§
Source§impl HyperLogLog
impl HyperLogLog
Sourcepub fn relative_error_bound(&self) -> f64
pub fn relative_error_bound(&self) -> f64
Relative error bound: ~1.04 / sqrt(m).
Sourcepub fn num_registers(&self) -> usize
pub fn num_registers(&self) -> usize
Number of registers.
Auto Trait Implementations§
impl Freeze for HyperLogLog
impl RefUnwindSafe for HyperLogLog
impl Send for HyperLogLog
impl Sync for HyperLogLog
impl Unpin for HyperLogLog
impl UnsafeUnpin for HyperLogLog
impl UnwindSafe for HyperLogLog
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