Click or drag to resize

StringAlgorithmsLevenshteinDistance Method

Calculate the Levenshtein distance between two strings, i.e. the minimum number of edits in order to make the two strings equal

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static int LevenshteinDistance(
	string s,
	string t
)

Parameters

s
Type: SystemString
t
Type: SystemString

Return Value

Type: Int32
0 if strings equals, a positive value if they differ
See Also