Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateParameters ¶
EstimateParameters estimates m and k from n and p
func GenHashInts ¶
GenHashInts generate n hash values by the seed passed
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is an implementation of bloom filter
func NewFromData ¶
NewFromData creates a new Filter from data generated by fn 'Data()'
func NewWithEstimates ¶
NewWithEstimates creates a new Filter with n and fp. n is the capacity of the Filter fp is the tolerated error rate of the Filter
Click to show internal directories.
Click to hide internal directories.