Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
BloomFilter is a space-efficient probabilistic data structure, conceived by Burton Howard Bloom in 1970, that is used to test whether an element is a member of a set.
func (*BloomFilter) Add ¶
func (filter *BloomFilter) Add(obj *[]byte) error
Add an object to the set
func (*BloomFilter) PoFP ¶
func (filter *BloomFilter) PoFP() float64
PoFP returns the probobility of false positives given the saturation of the filter
Click to show internal directories.
Click to hide internal directories.