HyperLogLog API prefix modified from "P" to "PF".

Using both the initials of Philippe Flajolet instead of just "P".
This commit is contained in:
antirez
2014-03-31 22:48:01 +02:00
parent ba4e20835a
commit 5afcca34ce
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.padd('hll',*elements)
r.pfadd('hll',*elements)
}
approx = r.pcount('hll')
approx = r.pfcount('hll')
err = approx-i
rel_err = 100.to_f*err/i
samples << [i,rel_err]