Description Usage Arguments Value See Also
View source: R/str_distances.R
Raw string edit distances are of limited use because differences in the lengths of compared strings drives the distribution of expected distances. The raw edit distances are normalized by element-wise division of the OSA distance by the maximum possible distance (sum of compared string lengths). Identical strings have a ratio of 0, completely different strings == 1.
1 | calc_dist_ratio(dists, maxes)
|
dists |
A matrix of string edit distances (OSA) |
maxes |
A matrix of maximum possible string edit distances |
A matrix of edit distance ratios
get_max_dist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.