hamming_normalized_similarity: Normalized Hamming Similarity

View source: R/RcppExports.R

hamming_normalized_similarityR Documentation

Normalized Hamming Similarity

Description

Calculates the normalized Hamming similarity between two strings.

Usage

hamming_normalized_similarity(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 similarity.

Examples

hamming_normalized_similarity("karolin", "kathrin")

RapidFuzz documentation built on April 3, 2025, 11:52 p.m.