Browse code

No need to scale score in 0..1

Change-Id: Iea655e766abdaec8e7f3e2c3aa5d23274636cfb9

John Hawthorn authored on 02/08/2014 02:34:41
Showing 1 changed files

  • match.c index ac35711..427cd6f 100644
... ...
@@ -155,7 +155,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio
155 155
 		}
156 156
 	}
157 157
 
158
-	return (float)(M[n-1][m-1]) / (float)(n * 2 + 1);
158
+	return M[n-1][m-1];
159 159
 }
160 160
 
161 161
 double match_positions(const char *needle, const char *haystack, size_t *positions){