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 6e71459c73
commit badf23f57b
5 changed files with 19 additions and 19 deletions

View File

@ -18,9 +18,9 @@ while true do
elements << ele
i += 1
}
r.padd('hll',*elements)
r.pfadd('hll',*elements)
}
approx = r.pcount('hll')
approx = r.pfcount('hll')
abs_err = (approx-i).abs
rel_err = 100.to_f*abs_err/i
puts "#{i} vs #{approx}: #{rel_err}%"