Mercurial Hosting > traffic-intelligence
diff python/utils.py @ 286:fa95796a76b3
simplified indicators (only non-measured values, whether measurable or not)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 27 Jan 2013 00:22:55 -0500 |
parents | 5957aa1d69e1 |
children | f6f423e25c7f |
line wrap: on
line diff
--- a/python/utils.py Sat Jan 26 19:02:25 2013 -0500 +++ b/python/utils.py Sun Jan 27 00:22:55 2013 -0500 @@ -175,7 +175,7 @@ similarity = zeros((m+1,n+1), dtype = npint) for i in xrange(1,m+1): for j in xrange(max(1,i-delta),min(n+1,i+delta)): - if distance(l1[i-1], l2[j-1])<threshold: + if distance(l1[i-1], l2[j-1])<=threshold: similarity[i][j] = similarity[i-1][j-1]+1 else: similarity[i][j] = max(similarity[i-1][j], similarity[i][j-1])