Skip to content

Commit

Permalink
Show Jaccard distance automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Feb 15, 2024
1 parent d95d640 commit d94357c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ QString getClipboardInfos() {
else
intro += " contains " + latinToGreek(text[i]) + " (" + text[i] + ").";
}
if (textset[0] && textset[1]) {
// double c = dist(text[0], text[1]);
double j = jaccard_dist(text[0], text[1]);
intro += "<br>Their Jaccard distance is " + QString::number(j) + ".";
}
return intro;
}

Expand Down

0 comments on commit d94357c

Please sign in to comment.