Versions in this module Expand all Collapse all v0 v0.0.0 Mar 14, 2023 Changes in this version + var DistPool = sync.Pool + func NewDistVec(size int) *[]float64 + type Hamming struct + CaseSensitive bool + func NewHamming() *Hamming + func (m *Hamming) Compare(a, b string) float64 + func (m *Hamming) Distance(a, b string) int + type Jaccard struct + CaseSensitive bool + NgramSize int + func NewJaccard() *Jaccard + func (m *Jaccard) Compare(a, b string) float64 + type Jaro struct + CaseSensitive bool + func NewJaro() *Jaro + func (m *Jaro) Compare(a, b string) float64 + type JaroWinkler struct + CaseSensitive bool + func NewJaroWinkler() *JaroWinkler + func (m *JaroWinkler) Compare(a, b string) float64 + type Levenshtein struct + CaseSensitive bool + DeleteCost int + InsertCost int + ReplaceCost int + func NewLevenshtein() *Levenshtein + func (m *Levenshtein) Compare(a, b string) float64 + func (m *Levenshtein) Distance(a, b string) int + type MatchMismatch struct + Match float64 + Mismatch float64 + func (m MatchMismatch) Compare(a []rune, idxA int, b []rune, idxB int) float64 + func (m MatchMismatch) Max() float64 + func (m MatchMismatch) Min() float64 + type OverlapCoefficient struct + CaseSensitive bool + NgramSize int + func NewOverlapCoefficient() *OverlapCoefficient + func (m *OverlapCoefficient) Compare(a, b string) float64 + type SmithWatermanGotoh struct + CaseSensitive bool + GapPenalty float64 + Substitution Substitution + func NewSmithWatermanGotoh() *SmithWatermanGotoh + func (m *SmithWatermanGotoh) Compare(runesA, runesB []rune) float64 + type SorensenDice struct + CaseSensitive bool + NgramSize int + func NewSorensenDice() *SorensenDice + func (m *SorensenDice) Compare(a, b string) float64 + type Substitution interface + Compare func(a []rune, idxA int, b []rune, idxB int) float64 + Max func() float64 + Min func() float64