Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clarkduvall/hyperloglog
/ functions
Functions
99 in github.com/clarkduvall/hyperloglog
⨍
Functions
99
◇
Types & classes
12
↓ 110 callers
Method
Add
(i uint32)
common.go:21
↓ 35 callers
Method
Count
Count returns the cardinality estimate.
hyperloglog.go:74
↓ 28 callers
Function
NewPlus
NewPlus returns a new initialized HyperLogLogPlus that uses the HyperLogLog++ algorithm.
hyperloglogplus.go:108
↓ 26 callers
Method
Next
()
compressed.go:15
↓ 18 callers
Method
encodeHash
Encode a hash to be used in the sparse representation.
hyperloglogplus.go:28
↓ 15 callers
Method
Merge
Merge takes another HyperLogLog and combines it with HyperLogLog h.
hyperloglog.go:60
↓ 14 callers
Function
eb32
Extract bits from uint32 using LSB 0 numbering, including lo.
common.go:85
↓ 14 callers
Function
eb64
Extract bits from uint64 using LSB 0 numbering, including lo.
common.go:91
↓ 13 callers
Method
Append
(x uint32)
compressed.go:52
↓ 12 callers
Function
New
New returns a new initialized HyperLogLog.
hyperloglog.go:30
↓ 11 callers
Function
clz32
This optimized clz32 algorithm is from: http://embeddedgurus.com/state-space/2014/09/ fast-deterministic-and-portable-counting-leading-zeros/
common.go:41
↓ 10 callers
Method
Iter
()
compressed.go:6
↓ 10 callers
Function
countZeros
(s []uint8)
common.go:101
↓ 8 callers
Function
clz64
(x uint64)
common.go:76
↓ 8 callers
Method
decodeHash
Decode a hash from the sparse representation.
hyperloglogplus.go:47
↓ 8 callers
Method
toNormal
Converts HyperLogLogPlus h to the normal representation from the sparse representation.
hyperloglogplus.go:132
↓ 6 callers
Method
HasNext
()
compressed.go:27
↓ 6 callers
Function
benchmark
(precision uint8, n int)
bench_test.go:29
↓ 6 callers
Method
mergeSparse
Merge tmpSet and sparseList in the sparse representation. Converts to normal if the sparse list is too large
hyperloglogplus.go:59
↓ 5 callers
Function
alpha
(m uint32)
common.go:23
↓ 5 callers
Method
estimateBias
Estimates the bias using empirically determined values.
hyperloglogplus.go:216
↓ 5 callers
Function
newCompressedList
(size int)
compressed.go:37
↓ 4 callers
Method
Peek
()
compressed.go:22
↓ 4 callers
Method
mergeSparseAndToNormal
()
hyperloglogplus.go:99
↓ 3 callers
Method
Len
()
compressed.go:5
↓ 3 callers
Function
calculateEstimate
(s []uint8)
common.go:111
↓ 3 callers
Method
decode
(i int, last uint32)
compressed.go:4
↓ 3 callers
Function
linearCounting
(m uint32, v uint32)
common.go:96
↓ 2 callers
Method
Add
Add adds a new item to HyperLogLogPlus h.
hyperloglogplus.go:147
↓ 2 callers
Method
Clear
Clear sets HyperLogLog h back to its initial state.
hyperloglog.go:43
↓ 2 callers
Function
hash32
(s string)
bench_test.go:12
↓ 2 callers
Function
hash64
(s string)
bench_test.go:18
↓ 2 callers
Method
maybeMerge
Merges tmpSet if it exceeds the threshold
hyperloglogplus.go:209
↓ 1 callers
Method
Sum32
()
common.go:6
↓ 1 callers
Method
Sum64
()
common.go:10
↓ 1 callers
Function
abs
(x int64)
hyperloglogplus_test.go:15
↓ 1 callers
Method
getIndex
Get the index of precision p from the sparse representation.
hyperloglogplus.go:39
↓ 1 callers
Function
randStr
(n int)
bench_test.go:24
Method
Add
Add adds a new item to HyperLogLog h.
hyperloglog.go:48
Method
Append
(x uint32)
compressed.go:82
Function
BenchmarkHll10
(b *testing.B)
bench_test.go:64
Function
BenchmarkHll14
(b *testing.B)
bench_test.go:68
Function
BenchmarkHll16
(b *testing.B)
bench_test.go:72
Function
BenchmarkHll4
(b *testing.B)
bench_test.go:52
Function
BenchmarkHll6
(b *testing.B)
bench_test.go:56
Function
BenchmarkHll8
(b *testing.B)
bench_test.go:60
Method
Clear
Clear sets HyperLogLogPlus h back to its initial state.
hyperloglogplus.go:123
Method
Count
Count returns the cardinality estimate.
hyperloglogplus.go:240
Method
GobDecode
Decode gob into a HyperLogLog structure
hyperloglog.go:104
Method
GobDecode
Decode gob into a HyperLogLogPlus structure
hyperloglogplus.go:297
Method
GobEncode
Encode HyperLogLog into a gob
hyperloglog.go:88
Method
GobEncode
Encode HyperLogLogPlus into a gob
hyperloglogplus.go:264
Method
Iter
()
compressed.go:58
Method
Iter
()
compressed.go:68
Method
Len
()
common.go:15
Method
Len
()
compressed.go:43
Method
Len
()
compressed.go:64
Method
Less
(i, j int)
common.go:16
Method
Merge
Merge takes another HyperLogLogPlus and combines it with HyperLogLogPlus h.
hyperloglogplus.go:164
Method
Sum32
()
hyperloglog_test.go:12
Method
Sum64
()
hyperloglogplus_test.go:13
Method
Swap
(i, j int)
common.go:17
Function
TestAlpha
(t *testing.T)
common_test.go:233
Function
TestCLZ32
(t *testing.T)
common_test.go:8
Function
TestCLZ64
(t *testing.T)
common_test.go:55
Function
TestCalculateEstimate
(t *testing.T)
common_test.go:255
Function
TestCompressedList
(t *testing.T)
compressed_test.go:69
Function
TestCountZeros
(t *testing.T)
common_test.go:191
Function
TestEB32
(t *testing.T)
common_test.go:87
Function
TestEB64
(t *testing.T)
common_test.go:139
Function
TestHLLAdd
(t *testing.T)
hyperloglog_test.go:14
Function
TestHLLClear
(t *testing.T)
hyperloglog_test.go:125
Function
TestHLLCount
(t *testing.T)
hyperloglog_test.go:54
Function
TestHLLError
(t *testing.T)
hyperloglog_test.go:169
Function
TestHLLGob
(t *testing.T)
hyperloglog_test.go:181
Function
TestHLLMerge
(t *testing.T)
hyperloglog_test.go:85
Function
TestHLLMergeError
(t *testing.T)
hyperloglog_test.go:75
Function
TestHLLMergeMixed
(t *testing.T)
hyperloglogplus_test.go:274
Function
TestHLLMergeMixedConvertToNormal
(t *testing.T)
hyperloglogplus_test.go:319
Function
TestHLLMergeNormal
(t *testing.T)
hyperloglogplus_test.go:232
Function
TestHLLMergeSparse
(t *testing.T)
hyperloglogplus_test.go:184
Function
TestHLLPPAddNoSparse
(t *testing.T)
hyperloglogplus_test.go:22
Function
TestHLLPPClear
(t *testing.T)
hyperloglogplus_test.go:342
Function
TestHLLPPCount
(t *testing.T)
hyperloglogplus_test.go:153
Function
TestHLLPPEncodeDecode
(t *testing.T)
hyperloglogplus_test.go:457
Function
TestHLLPPError
(t *testing.T)
hyperloglogplus_test.go:500
Function
TestHLLPPEstimateBias
(t *testing.T)
hyperloglogplus_test.go:126
Function
TestHLLPPEstimateBiasCount
(t *testing.T)
hyperloglogplus_test.go:545
Function
TestHLLPPGob
(t *testing.T)
hyperloglogplus_test.go:517
Function
TestHLLPPMerge
(t *testing.T)
hyperloglogplus_test.go:364
Function
TestHLLPPMergeError
(t *testing.T)
hyperloglogplus_test.go:174
Function
TestHLLPPPrecisionNoSparse
(t *testing.T)
hyperloglogplus_test.go:63
Function
TestHLLPPToNormal
(t *testing.T)
hyperloglogplus_test.go:86
Function
TestHLLPPToNormalWhenCountIsCalledOften
(t *testing.T)
hyperloglogplus_test.go:577
Function
TestHLLPPToNormalWhenSparseIsTooBig
(t *testing.T)
hyperloglogplus_test.go:560
Function
TestHLLPrecision
(t *testing.T)
hyperloglog_test.go:147
Function
TestVariableLengthList
(t *testing.T)
compressed_test.go:8
Method
decode
(i int, last uint32)
compressed.go:47
Method
decode
(i int, last uint32)
compressed.go:72