Probabilistic Filter
A probabilistic filter offers an approximate containment test with one-sided error: if it claims that an element is contained in it, this might be in error, but if it claims that an element is not contained in it, then this is definitely true.
The false positive probability (FPP
) of a probabilistic filter is defined as the probability that contains will erroneously return true
for an element that is not actually contained in the filter.
Author
Brian Dupras
Parameters
<E>
the type of elements that this filter accepts
See also
Inheritors
Functions
Link copied to clipboard
Adds all of the elements in the specified collection to this filter (optional operation).
Combines
this
filter with another compatible filter (optional operation).Link copied to clipboard
Returns
true
if this filter might contain all of the elements of the specified collection (optional operation).Returns
true
if this filter might contain all elements contained in the specified filter (optional operation).Link copied to clipboard
Returns the current false positive probability (
FPP
) of this filter.Link copied to clipboard
Returns
true
if the specified filter is compatible with this
filter.Link copied to clipboard
Removes from this filter all of its elements that are contained in the specified collection (optional operation).
Subtracts the specified filter from
this
filter.