normalizedHamming
normalizedHamming(
a,b):number|null
Compute the normalized Hamming similarity between two strings.
Returns null if the strings have different lengths.
Returns a value between 0.0 (no matching characters) and 1.0 (identical).
Compares the Unicode code points of the strings as given: case, whitespace and Unicode normalization (NFC vs NFD) are not adjusted.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
a |
string |
b |
string |
Returns
Section titled “Returns”number | null