MCPcopy Create free account
hub / github.com/eclesh/hyperloglog / New

Function New

hyperloglog.go:53–63  ·  view source on GitHub ↗

Return a new HyperLogLog with the given number of registers. More registers leads to lower error in your estimated count, at the expense of memory. Choose a power of two number of registers, depending on the amount of memory you're willing to use and the error you're willing to tolerate. Each regis

(registers uint)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

testHyperLogLogFunction · 0.85
benchmarkCountFunction · 0.85

Calls 2

ResetMethod · 0.95
get_alphaFunction · 0.85

Tested by 2

testHyperLogLogFunction · 0.68
benchmarkCountFunction · 0.68