Euclidean Distance (ED)

author:Wannes Meert
copyright:Copyright 2020 KU Leuven, DTAI Research Group.
license:Apache License, Version 2.0, see LICENSE for details.
dtaidistance.ed.distance(s1, s2)

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

Euclidean distance