double function ( final int arg0 , final int arg1 , final double arg2 ) { final double loc0 = TWO_TO_L [ ( REG_WIDTH_INDEX_MULTIPLIER * arg1 ) + arg0 ] ; return - 1 * loc0 * Math . log ( 1.0 - ( arg2 / loc0 ) ) ; }
the `` large range correction '' formula from the hyperloglog algorithm , adapted for 64 bit hashes . only appropriate for estimators whose value exceeds the return of #largeestimatorcutoff int , int . concode_field_sep int REG_WIDTH_INDEX_MULTIPLIER concode_elem_sep long[] PW_MASK concode_elem_sep double[] TWO_TO_L concode_field_sep double smallEstimator concode_elem_sep double smallEstimatorCutoff concode_elem_sep double alphaMSquared concode_elem_sep long pwMaxMask concode_elem_sep int registerBitSize concode_elem_sep double largeEstimatorCutoff