EditDistance
EditDistance[u,v]
gives the edit or Levenshtein distance between strings or vectors u and v.
Details and Options
- EditDistance[u,v] gives the number of one-element deletions, insertions, and substitutions required to transform u to v.
- For strings, setting the option IgnoreCase->True makes EditDistance treat lower‐ and upper‐case letters as equivalent.
Examples
open allclose allSee Also
DamerauLevenshteinDistance HammingDistance SmithWatermanSimilarity StringCount JaccardDissimilarity Nearest CentralFeature
Tutorials
Related Guides
Related Links
Introduced in 2007
(6.0)