Euclidean Distance (ED)
|copyright:||Copyright 2020 KU Leuven, DTAI Research Group.|
|license:||Apache License, Version 2.0, see LICENSE for details.|
distance(s1, s2, inner_dist='squared euclidean')¶
Euclidean distance between two sequences. Supports different lengths.
If the two series differ in length, compare the last element of the shortest series to the remaining elements in the longer series. This is compatible with Euclidean distance being used as an upper bound for DTW.
- s1 – Sequence of numbers
- s2 – Sequence of numbers
- inner_dist – Inner distance function between two values