Lines Matching refs:E

505     double E = 0;  in hllDenseSum()  local
537 E += (PE[r0] + PE[r1]) + (PE[r2] + PE[r3]) + (PE[r4] + PE[r5]) + in hllDenseSum()
551 E += PE[reg]; /* Precomputed 2^(-reg[j]). */ in hllDenseSum()
554 E += ez; /* Add 2^0 'ez' times. */ in hllDenseSum()
557 return E; in hllDenseSum()
889 double E = 0; in hllSparseSum() local
910 E += PE[regval]*runlen; in hllSparseSum()
915 E += ez; /* Add 2^0 'ez' times. */ in hllSparseSum()
917 return E; in hllSparseSum()
929 double E = 0; in hllRawSum() local
939 if (bytes[0]) E += PE[bytes[0]]; else ez++; in hllRawSum()
940 if (bytes[1]) E += PE[bytes[1]]; else ez++; in hllRawSum()
941 if (bytes[2]) E += PE[bytes[2]]; else ez++; in hllRawSum()
942 if (bytes[3]) E += PE[bytes[3]]; else ez++; in hllRawSum()
943 if (bytes[4]) E += PE[bytes[4]]; else ez++; in hllRawSum()
944 if (bytes[5]) E += PE[bytes[5]]; else ez++; in hllRawSum()
945 if (bytes[6]) E += PE[bytes[6]]; else ez++; in hllRawSum()
946 if (bytes[7]) E += PE[bytes[7]]; else ez++; in hllRawSum()
950 E += ez; /* 2^(-reg[j]) is 1 when m is 0, add it 'ez' times for every in hllRawSum()
953 return E; in hllRawSum()
969 double E, alpha = 0.7213/(1+1.079/m); in hllCount() local
987 E = hllDenseSum(hdr->registers,PE,&ez); in hllCount()
989 E = hllSparseSum(hdr->registers, in hllCount()
992 E = hllRawSum(hdr->registers,PE,&ez); in hllCount()
998 E = (1/E)*alpha*m*m; in hllCount()
1005 if (E < m*2.5 && ez != 0) { in hllCount()
1006 E = m*log(m/ez); /* LINEARCOUNTING() */ in hllCount()
1007 } else if (m == 16384 && E < 72000) { in hllCount()
1012 double bias = 5.9119*1.0e-18*(E*E*E*E) in hllCount()
1013 -1.4253*1.0e-12*(E*E*E)+ in hllCount()
1014 1.2940*1.0e-7*(E*E) in hllCount()
1015 -5.2921*1.0e-3*E+ in hllCount()
1017 E -= E*(bias/100); in hllCount()
1023 return (uint64_t) E; in hllCount()