Repository navigation
Releases
Releases · nalgeon/unsure
0.2.0
Unsure implements probabilistic data structures in Go. It's simple, fast, and has zero dependencies.
New data structures in this release:
- Binary fuse filter checks if an item might be in a set (a more compact alternative to a Bloom filter).
- Log-linear histogram estimates quantiles of a stream of numbers (a more accurate alternative to t-digest).
- MinHash estimates how similar two sets are.
- UltraLogLog estimates the number of distinct items (a more compact alternative to HyperLogLog).
Install with:
go get github.com/nalgeon/unsure
0.1.0
Unsure implements probabilistic data structures in Go. It's simple (the core logic for each data structure is 100–300 loc), fast (often several times faster than other implementations), and has no dependencies except for the standard library.
Data structures:
- Bloom filter checks if an item might be in a set.
- Count-min sketch estimates how many times each item has occurred.
- HyperLogLog estimates the number of distinct items.
- T-digest estimates quantiles of a stream of numbers.
- Top-k sketch identifies the most frequent items in a stream.
Install with:
go get github.com/nalgeon/unsure