HyperLogLog: make API use the P prefix in honor of Philippe Flajolet.

This commit is contained in:
antirez
2014-03-31 19:16:47 +02:00
parent 1e90c0066c
commit 2ee2bec2d6
5 changed files with 19 additions and 19 deletions

View File

@ -30,9 +30,9 @@ def run_experiment(r,seed,max,step)
elements << ele
i += 1
}
r.hlladd('hll',*elements)
r.padd('hll',*elements)
}
approx = r.hllcount('hll')
approx = r.pcount('hll')
err = approx-i
rel_err = 100.to_f*err/i
samples << [i,rel_err]