hamming_normalized_distance {RapidFuzz} | R Documentation |
Normalized Hamming Distance
Description
Calculates the normalized Hamming distance between two strings.
Usage
hamming_normalized_distance(s1, s2, pad = TRUE)
Arguments
s1 |
The first string. |
s2 |
The second string. |
pad |
If true, the strings are padded to the same length (default: TRUE). |
Value
A value between 0 and 1 representing the normalized distance.
Examples
hamming_normalized_distance("karolin", "kathrin")
[Package RapidFuzz version 1.0 Index]