Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DamerauLevenshtein ¶
DamerauLevenshtein computes the Damerau-Levenshtein distance Similar to Levenshtein but also allows transpositions
func Euclidean ¶
Euclidean computes the Euclidean distance between two points Returns a similarity score (inverse of distance)
func Hamming ¶
Hamming computes the Hamming distance between two strings Strings must be of equal length. Returns a normalized score between 0.0 and 1.0
func HammingBytes ¶
HammingBytes computes the Hamming distance between two byte slices
func Levenshtein ¶
Levenshtein computes the Levenshtein distance between two strings Returns a normalized score between 0.0 (completely different) and 1.0 (identical)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.