mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
HyperLogLog API prefix modified from "P" to "PF".
Using both the initials of Philippe Flajolet instead of just "P".
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user