Minor change to algorithm. <= 0.5 instead of < 0.5.

This commit is contained in:
2026-04-22 02:43:56 +01:00
parent 89c76efad0
commit 9cd7ee4c55
2 changed files with 19 additions and 9 deletions

View File

@@ -147,7 +147,7 @@ int main(const int argc, char *argv[]) {
line_count++;
}
if (max_similarity < 0.5) {
if (max_similarity <= 0.5) {
for (size_t i = 0; i < line_count; i++) {
lines[i].common_substring_length = maximalCommonSubstringLength(query, lines[i].line);
lines[i].score = maximalCommonSubstringSimilarity(lines[i].common_substring_length, lines[i].min_len);