Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBloomFilter ¶
CreateBloomFilter the basic function to create bloom filter.
Types ¶
type CBF ¶
type CBF struct {
// contains filtered or unexported fields
}
CBF :Counting Bloom Filter
Example ¶
m := 5 h1 := func(input int) int { return (input % m) + 1 } var hashList [](func(index int) int) hashList = append(hashList, h1) var inputList = []int{100, 121, 456, 121, 987} fmt.Println("Bloom Filter:", CreateBloomFilter(inputList, hashList, m))
Output:
func NewCountingBloomFilter ¶
NewCountingBloomFilter : Create a counting bloom filter with assigned expect element count and false detect rate.
Click to show internal directories.
Click to hide internal directories.