module BloomFilter
Defined in:
bloom_filter.crbloom_filter/filter.cr
bloom_filter/version.cr
Constant Summary
-
VERSION =
"0.1.1"
Constructors
Class Method Summary
- .load(io : IO) : Filter
- .load_file(file_path) : Filter
-
.new_optimal(n, p) : Filter
Creates optimal filter based number of items and desired false positive probability.
Constructor Detail
Class Method Detail
Creates optimal filter based number of items and desired false positive probability.
n - the number of expected elements to be inserted p - desired false positive probability m - bitsize of the filter k - number of hash functions