Browse Source

Fixed levenshtein distance

tempestpy_adaptions
TimQu 6 years ago
parent
commit
bb0c2282b3
  1. 4
      src/storm/utility/string.cpp

4
src/storm/utility/string.cpp

@ -55,11 +55,11 @@ namespace storm {
for (uint64_t col = 1; col < d[row].size(); ++col) {
uint64_t cost = 1;
if (caseSensitive) {
if (tolower(lhs[row-1]) == tolower(rhs[col-1])) {
if (lhs[row-1] == rhs[col-1]) {
cost = 0;
}
} else {
if (lhs[row-1] == rhs[col-1]) {
if (tolower(lhs[row-1]) == tolower(rhs[col-1])) {
cost = 0;
}
}

Loading…
Cancel
Save