TheFuzz v0.5.0 TheFuzz.Similarity.Hamming View Source
This module contains functions to calculate the Hamming distance between 2 given strings
Link to this section Summary
Functions
Calculates the Hamming distance between 2 given strings
Link to this section Functions
Link to this function
compare(a, b) View Source
Calculates the Hamming distance between 2 given strings.
Examples
iex> TheFuzz.Similarity.Hamming.compare("toned", "roses")
3
iex> TheFuzz.Similarity.Hamming.compare("toned", "hamming")
nil
iex> TheFuzz.Similarity.Hamming.compare("toned", "toned")
0