Values represented by the filter.
Creates a counting filter from its size, hash count, and optional seed or counters.
Values represented by the filter.
Filter size, hash count, and optional initial state.
A new counting Bloom filter.
ReadonlyfilterReadonlyhashesReadonlyseedReadonlysizeAdds an instance of an element and increments its counters.
Value to add.
Returns the possible number of times an element was added.
Value to look up.
The minimum counter value for this element's hash positions.
Removes an instance of an element without allowing counters below zero.
Value to remove.
Returns the filter state in a JSON-serialisable form.
Filter size, hash count, seed, and counter data.
A counting Bloom filter that tracks approximate membership counts and supports removal.
Like a standard Bloom filter, it can report false positives. The returned count is therefore a possible count, not proof of exact membership.