MCPcopy Create free account

hub / github.com/dgryski/go-simstore / functions

Functions88 in github.com/dgryski/go-simstore

↓ 22 callersMethodfind
(sig uint64, mask uint64, d int)
simstore.go:55
↓ 18 callersMethodadd
(hash uint64)
simstore.go:54
↓ 14 callersMethodunshuffleList
(sigs []uint64, t int)
simstore6.go:115
↓ 8 callersMethodAdd
(sig, docid uint64)
simstore6.go:4
↓ 6 callersMethodSearch
Search searches the VP-tree for the k nearest neighbours of target. It returns the up to k narest neighbours and the corresponding distances in order
vptree/vptree.go:48
↓ 5 callersMethodLen
()
vptree/pq.go:5
↓ 5 callersMethoddecompressBlock
(block int)
zstore.go:125
↓ 5 callersFunctionhamming
(a, b uint64)
vptree/vptree.go:16
↓ 5 callersFunctiontestAdd
(t *testing.T, s Storage, size, queries, d int)
simstore6_test.go:36
↓ 4 callersMethodPop
()
vptree/pq.go:21
↓ 4 callersMethodadd
(p uint64)
zstore.go:30
↓ 4 callersFunctionsimhashString
(s string)
simhash/simhash_test.go:10
↓ 4 callersMethodunshuffleList
(sigs []uint64, t int)
simstore.go:151
↓ 3 callersFunctionDistance
(v1 uint64, v2 uint64)
simhash/simhash.go:43
↓ 3 callersFunctionNew3
New3 returns a Store for searching hamming distance <= 3
simstore.go:98
↓ 3 callersFunctionNew6
(hashes int, newStore func(hashes int) u64store)
simstore6.go:13
↓ 3 callersMethodfinish
()
zstore.go:34
↓ 3 callersFunctionunique
(ids []uint64)
simstore.go:277
↓ 3 callersMethodunshuffle
(sig uint64, t int)
simstore.go:138
↓ 2 callersMethodBytes
()
simhash/scanners.go:10
↓ 2 callersFunctionCurrentConfig
actual type is *Config CurrentConfig atomically returns the current configuration
simd/main.go:46
↓ 2 callersMethodFind
(sig uint64)
simstore6.go:5
↓ 2 callersMethodFinish
()
simstore6.go:6
↓ 2 callersFunctionNew
New creates a new VP-tree using the metric and items provided. The metric measures the distance between two items, so that the VP-tree can find the ne
vptree/vptree.go:39
↓ 2 callersMethodPush
(i interface{})
vptree/pq.go:16
↓ 2 callersMethodScan
()
simhash/scanners.go:9
↓ 2 callersFunctiondistance
distance returns the hamming distance between v1 and v2
simstore.go:293
↓ 2 callersMethodfinish
()
simstore.go:56
↓ 2 callersFunctionloadConfig
(input string, useStore bool, storeSize int, small bool, compressed bool, useVPTree bool, myNumber int, totalM
simd/main.go:164
↓ 1 callersMethodErr
()
simhash/scanners.go:11
↓ 1 callersFunctionHash
Hash returns a simhash value for the document returned by the scanner
simhash/simhash.go:16
↓ 1 callersFunctionNew3Small
(hashes int)
simstore.go:239
↓ 1 callersMethodTop
()
vptree/pq.go:29
↓ 1 callersFunctionUpdateConfig
UpdateConfig atomically swaps the current configuration
simd/main.go:49
↓ 1 callersMethodblocks
()
zstore.go:40
↓ 1 callersMethodbuildFromPoints
(items []Item)
vptree/vptree.go:74
↓ 1 callersFunctioncompareCoordDistSets
This helper function compares two sets of coordinates/distances to make sure they are the same.
vptree/vptree_test.go:10
↓ 1 callersMethodcompress
()
zstore.go:44
↓ 1 callersMethodenter
()
simstore.go:161
↓ 1 callersMethodleave
()
simstore.go:162
↓ 1 callersFunctionlineCounter
https://stackoverflow.com/questions/24562942/golang-how-do-i-determine-the-number-of-lines-in-a-file-efficiently
simd/main.go:137
↓ 1 callersFunctionnearestNeighbours
This helper function finds the k nearest neighbours of target in items. It's slower than the VPTree, but its correctness is easy to verify, so we can
vptree/vptree_test.go:32
↓ 1 callersMethodsearch
(n *node, tau *float64, target uint64, k int, h *priorityQueue)
vptree/vptree.go:111
↓ 1 callersFunctionsearchHandler
(w http.ResponseWriter, r *http.Request)
simd/main.go:313
↓ 1 callersFunctiontopkHandler
(w http.ResponseWriter, r *http.Request)
simd/main.go:273
↓ 1 callersMethodunshuffle
(sig uint64, t int)
simstore6.go:82
MethodAdd
Add inserts a signature and document id into the store
simstore.go:111
MethodAdd
(sig uint64, docid uint64)
simstore.go:243
MethodAdd
Add inserts a signature and document id into the store
simstore6.go:28
FunctionBenchmarkDecompress
(b *testing.B)
zstore_test.go:57
MethodBytes
()
simhash/scanners.go:37
MethodErr
()
simhash/scanners.go:24
MethodFind
Find searches the store for all hashes hamming distance 3 or less from the query signature. It returns the associated list of document ids.
simstore.go:193
MethodFind
(sig uint64)
simstore.go:252
MethodFind
Find searches the store for all hashes hamming distance 6 or less from the query signature. It returns the associated list of document ids.
simstore6.go:130
MethodFinish
Finish prepares the store for searching. This must be called once after all the signatures have been added via Add().
simstore.go:166
MethodFinish
()
simstore.go:269
MethodLen
()
simstore.go:28
MethodLen
()
simstore.go:62
MethodLess
(i, j int)
simstore.go:30
MethodLess
(i int, j int)
simstore.go:63
MethodLess
(i, j int)
vptree/pq.go:7
FunctionNewSliceScanner
NewSliceScanner creates a scanner that returns the byte slices in tokens
simhash/scanners.go:20
FunctionNewU64Slice
(hashes int)
simstore.go:48
FunctionNewZStore
(hashes int)
zstore.go:26
MethodScan
()
simhash/scanners.go:28
FunctionScanByteTrigrams
(data []byte, atEOF bool)
simhash/scanners.go:41
MethodSwap
(i, j int)
simstore.go:29
MethodSwap
(i int, j int)
simstore.go:64
MethodSwap
(i, j int)
vptree/pq.go:12
FunctionTestAdd3
(t *testing.T)
simstore6_test.go:11
FunctionTestAdd3Small
(t *testing.T)
simstore6_test.go:16
FunctionTestAdd3Z
(t *testing.T)
simstore6_test.go:26
FunctionTestAdd6
(t *testing.T)
simstore6_test.go:21
FunctionTestAdd6Z
(t *testing.T)
simstore6_test.go:31
FunctionTestCompress
(t *testing.T)
zstore_test.go:11
FunctionTestDuplicateSignatures
(t *testing.T)
zstore_test.go:81
FunctionTestEmpty
This test makes sure vptree's behavior is sane with no input items
vptree/vptree_test.go:64
FunctionTestSimHash
(t *testing.T)
simhash/simhash_test.go:17
FunctionTestSmall
This test creates a small VPTree and makes sure its search function returns the right results
vptree/vptree_test.go:81
FunctionTestUnshuffle
(t *testing.T)
simstore_test.go:8
FunctionTestUnshuffle6
(t *testing.T)
simstore_test.go:26
Methodadd
(p uint64)
simstore.go:83
Methodfind
(sig uint64)
simstore.go:34
Methodfind
(sig, mask uint64, d int)
simstore.go:66
Methodfind
(sig, mask uint64, d int)
zstore.go:171
Methodfinish
()
simstore.go:87
Functionmain
()
simd/main.go:51