Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skvp-owner committed May 26, 2018
1 parent 826bca3 commit 24f0f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The function **simpledtw.dtw()** returns 5 outputs:
In order to use norms that are different from **L2 distance**, which is the default behavior of **numpy.linalg.norm**, you could use a lambda expression, for example, for L1 distance you could use:
```
>>> norm_func = lambda x : numpy.linalg.norm(x, ord = 1)
>>> matches, mapping_1, mapping_2, matrix = simpledtw.dtw(series_1, series_2, norm_func)
>>> matches, cost, mapping_1, mapping_2, matrix = simpledtw.dtw(series_1, series_2, norm_func)
```

You might want to check NumPy's norm function documentation [here](https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.norm.html)
Expand Down

0 comments on commit 24f0f40

Please sign in to comment.