We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efec696 commit ac8c998Copy full SHA for ac8c998
src/okbloomer/bloom_filter.py
@@ -9,9 +9,6 @@ class BloomFilter(object):
9
10
MAX_SLICE_SIZE = 2147483647
11
12
- n = 0 # The number of bits currently stored in the filter.
13
- m = 0 # The maximum number of bits that can be stored in the filter.
14
-
15
def __init__(self,
16
max_false_positive_rate: float = 0.01,
17
num_hashes: int = 4,
@@ -36,6 +33,8 @@ def __init__(self,
36
33
self.layer_size = layer_size
37
34
self.slice_size = slice_size
38
35
self.layers: list[NDArray] = []
+ self.n = 0 # The number of bits currently stored in the filter.
+ self.m = 0 # The maximum number of bits that can be stored in the filter.
39
40
self._add_layer()
41
0 commit comments