public static int registerBitSize(final long expectedUniqueElements){
  return Math.max(HLL.MINIMUM_REGWIDTH_PARAM,(int)Math.ceil(NumberUtil.log2(NumberUtil.log2(expectedUniqueElements))));
}

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 .
