public void CalculateConstantAlphaCorrectionFactor_CalculatedForParamB7() { double result = HyperLogLogInternals.CalculateConstantAlphaCorrectionFactor(7); // b = 7 => m = 128 // 0,7213 / (1 + (1,079 / 128)) = 0,715270493 Assert.That(result, Is.EqualTo(0.715270493).Within(0.000000001)); }
public int PositionOfLeftMostOne(uint hash, byte b) { return(HyperLogLogInternals.PositionOfLeftMostOne(hash, b)); }
public double CalculateConstantAlphaCorrectionFactor_Constants(byte b) { return(HyperLogLogInternals.CalculateConstantAlphaCorrectionFactor(b)); }
public int CalculateRegisterIndexTest(uint hash, byte b) { return((int)HyperLogLogInternals.CalculateRegisterIndex(hash, b)); }