diff options
author | John Hawthorn <john@freerunningtechnologies.com> | 2014-08-01 19:34:41 -0700 |
---|---|---|
committer | John Hawthorn <john@freerunningtechnologies.com> | 2014-08-06 11:20:04 -0700 |
commit | 38e22da4447114d2a286637ff4011e1719ae37e1 (patch) | |
tree | 48fd3da00d1a0ccccd340af8dfa2c1c01420a213 | |
parent | 175ffa6dc4f6ddad71ca1ddf7dc9a9007c4c6348 (diff) |
No need to scale score in 0..1
Change-Id: Iea655e766abdaec8e7f3e2c3aa5d23274636cfb9
-rw-r--r-- | match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio } } - return (float)(M[n-1][m-1]) / (float)(n * 2 + 1); + return M[n-1][m-1]; } double match_positions(const char *needle, const char *haystack, size_t *positions){ |