public static int registerBitSize ( final long expectedUniqueElements ) { return Math . max ( HLL . MINIMUM_REGWIDTH_PARAM , ( int ) Math . ceil ( NumberUtil . log2 ( NumberUtil . log2 ( expectedUniqueElements ) ) ) ) ; }
Computes the bit - width of HLL registers necessary to estimate a set of the specified cardinality .