pub fn count(&self) -> usize {
        let m = self.registers.len() as f64;

        let z = 1f64
            / self
                .registers
                .iter()
                .map(|&x| POW2MINX[x as usize])
                .sum::<f64>();

        let e = self.am() * m * m * z;

        let e_star = if e <= (5. * m) {
            e - self.estimate_bias(e)
        } else {
            e
        };

        let v = bytecount::count(&self.registers, 0);
        let h = if v != 0 {
            self.linear_counting(v)
        } else {
            e_star
        };

        if h <= (self.threshold() as f64) {
            h as usize
        } else {
            e_star as usize
        }
    }
/// Guess the number of unique elements seen by the HyperLogLog.
Guess the number of unique elements seen by the HyperLogLog.
Guess the number of unique elements seen by the HyperLogLog .
pub fn count(&self) -> usize {
        let m = self.registers.len() as f64;
        let z = 1f64
            / self
                .registers
                .iter()
                .map(|&x| POW2MINX[x as usize])
                .sum::<f64>();
        let e = self.am() * m * m * z;
        let e_star = if e <= (5. * m) {
            e - self.estimate_bias(e)
        } else {
            e
        };
        let v = bytecount::count(&self.registers, 0);
        let h = if v != 0 {
            self.linear_counting(v)
        } else {
            e_star
        };
        if h <= (self.threshold() as f64) {
            h as usize
        } else {
            e_star as usize
        }
    }
pub fn count ( & self ) -> usize { let m = self . registers . len ( ) as f64 ; let z = 1f64 / self . registers . iter ( ) . map ( | & x | POW2MINX [ x as usize ] ) . sum :: < f64 > ( ) ; let e = self . am ( ) * m * m * z ; let e_star = if e <= ( 5. * m ) { e - self . estimate_bias ( e ) } else { e } ; let v = bytecount :: count ( & self . registers , 0 ) ; let h = if v != 0 { self . linear_counting ( v ) } else { e_star } ; if h <= ( self . threshold ( ) as f64 ) { h as usize } else { e_star as usize } }
Guess the number of unique elements seen by the HyperLogLog.
Guess the number of unique elements seen by the HyperLogLog .
&self
&self