Searched refs:substitution_cost (Results 1 – 2 of 2) sorted by relevance
15 substitution_cost(char a, char b) in substitution_cost() function103 size_t substitute = distance + substitution_cost(code, a[index]); in levenshtein_distance()
366 let mut substitution_cost = distances[flat_index(i, j, width)] + 1; in generic_damerau_levenshtein() localVariable369 substitution_cost -= 1; in generic_damerau_levenshtein()372 distances[flat_index(i + 1, j + 1, width)] = min(substitution_cost, in generic_damerau_levenshtein()