Module hyperloglogplus

Source
Expand description

§HyperLogLogPlus

hyperloglogplus module contains implementation of HyperLogLogPlus algorithm for cardinality estimation so that [crate::series::approx_n_unique] function can be efficiently implemented.

This module borrows code from arrow-datafusion.

§Examples

    let mut hllp = HyperLogLog::new();
    hllp.add(&12345);
    hllp.add(&23456);

    assert_eq!(hllp.count(), 2);

Structs§

HyperLogLog