Struct pdatastructs::HyperLogLog [] [src]

pub struct HyperLogLog { /* fields omitted */ }

A simple implementation of a HyperLogLog

Methods

impl HyperLogLog
[src]

[src]

Creates a new, empty HyperLogLog.

  • b number of bits used for register selection, number of registers within the HyperLogLog will be 2^b. b must be in [4, 16]

Panics when b is out of bounds.

[src]

Get number of bits used for register selection.

[src]

Get number of registers.

[src]

Adds an element to the HyperLogLog.

[src]

Guess the number of unique elements seen by the HyperLogLog.

[src]

Merge w/ another HyperLogLog.

This HyperLogLog will then have the same state as if all elements seen by other where directly added to self.

Panics when b parameter of self and other do not match.

[src]

Empties the HyperLogLog.

[src]

Checks whether the HyperLogLog has never seen an element.

Trait Implementations

impl Clone for HyperLogLog
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HyperLogLog
[src]

[src]

Formats the value using the given formatter.