MCPcopy Create free account

hub / github.com/xrash/smetrics / functions

Functions13 in github.com/xrash/smetrics

↓ 2 callersFunctionHamming
The Hamming distance is the minimum number of substitutions required to change string A into string B. Both strings must have the same size. If the st
hamming.go:8
↓ 2 callersFunctionJaro
The Jaro distance. The result is 1 for equal strings, and 0 for completely different strings.
jaro.go:8
↓ 1 callersFunctionJaroWinkler
The Jaro-Winkler distance. The result is 1 for equal strings, and 0 for completely different strings. It is commonly used on Record Linkage stuff, thu
jaro-winkler.go:9
↓ 1 callersFunctionSoundex
The Soundex encoding. It is a phonetic algorithm that considers how the words sound in English. Soundex maps a string to a 4-byte code consisting of t
soundex.go:8
↓ 1 callersFunctionUkkonen
The Ukkonen algorithm for calculating the Levenshtein distance. The algorithm is described in http://www.cs.helsinki.fi/u/ukkonen/InfCont85.PDF, or in
ukkonen.go:9
↓ 1 callersFunctionWagnerFischer
The Wagner-Fischer algorithm for calculating the Levenshtein distance. The first two parameters are the two strings to be compared. The last three par
wagner-fischer.go:5
FunctionTestHamming
(t *testing.T)
tests/hamming_test.go:9
FunctionTestHammingError
(t *testing.T)
tests/hamming_test.go:34
FunctionTestJaro
(t *testing.T)
tests/jaro_test.go:9
FunctionTestJaroWinkler
(t *testing.T)
tests/jaro-winkler_test.go:9
FunctionTestSoundex
(t *testing.T)
tests/soundex_test.go:9
FunctionTestUkkonen
(t *testing.T)
tests/ukkonen_test.go:9
FunctionTestWagnerFischer
(t *testing.T)
tests/wagner-fischer_test.go:9