コード例 #1
0
        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));
        }
コード例 #2
0
 public int PositionOfLeftMostOne(uint hash, byte b)
 {
     return(HyperLogLogInternals.PositionOfLeftMostOne(hash, b));
 }
コード例 #3
0
 public double CalculateConstantAlphaCorrectionFactor_Constants(byte b)
 {
     return(HyperLogLogInternals.CalculateConstantAlphaCorrectionFactor(b));
 }
コード例 #4
0
 public int CalculateRegisterIndexTest(uint hash, byte b)
 {
     return((int)HyperLogLogInternals.CalculateRegisterIndex(hash, b));
 }