1 2 3 4 5 6 7 8
/// HyperLogLog probabilistic distinct-element cardinality estimator using 64-bit hashes. #[derive(Clone, Debug, Eq, PartialEq)] pub struct HyperLogLog { /// Register index precision `p` in `4..=16` (`m = 1 << p`). pub(crate) precision: u8, /// Per-bucket maximum leading-zero rank registers. pub(crate) registers: Vec<u8>, }