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: 19.0.0.0 (11.1.1.1111)
Syntax
public static int LevenshteinDistance(
	string s,
	string t
)

Parameters

s
Type: SystemString

[Missing <param name="s"/> documentation for "M:DHI.Mike1D.Generic.StringAlgorithms.LevenshteinDistance(System.String,System.String)"]

t
Type: SystemString

[Missing <param name="t"/> documentation for "M:DHI.Mike1D.Generic.StringAlgorithms.LevenshteinDistance(System.String,System.String)"]

Return Value

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