bloom

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 6 Imported by: 0

README

Bloom-Filter

布隆过滤器

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoomFilter

type BoomFilter interface {
	Add(data ...string)
	Find(data string) bool
}

func NewBoom

func NewBoom(n uint, p float64) BoomFilter

NewBoom new boom-filter n: 样本数量, p: 允许的失误率

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL