-
Notifications
You must be signed in to change notification settings - Fork 274
Closed
Description
Page https://redis.io/docs/latest/develop/data-types/probabilistic/bloom-filter
The formula of bits_per_item is incorrect
| bits_per_item = -log(error)/ln(2) |
According wikipedia Optimal_number_of_hash_functions, bits per item is:
And the formula in the doc
I calculate with python -log(error_rate) / (log(2) ** 2) get 9.58, 14.37, 19.17 for error rate 1 %, 0.1 %, 0.01% respectly.
Metadata
Metadata
Assignees
Labels
No labels