Skip to content

Commit

Permalink
fix keogh lowerbound
Browse files Browse the repository at this point in the history
  • Loading branch information
wannesm committed May 7, 2019
1 parent 59041e6 commit 03d87c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dtaidistance/dtw.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ def lb_keogh(s1, s2, window=None, max_dist=None,
ci = s1[i]
if ci > ui:
t += abs(ci - ui)
else:
elif ci < li:
t += abs(ci - li)
else:
pass
return t


Expand Down

0 comments on commit 03d87c9

Please sign in to comment.