How to find the offset between two time series that minimizes their euclidean distance?

StackOverflow https://stackoverflow.com/questions/22554232

  •  18-06-2023
  •  | 
  •  

Вопрос

I'm looking for some methods to compute shape similarity between two curve segments.

I have two time series x1 (purple line) and x2 (red line) and I would like to find the y-offset that minimizes the difference between the two curves (the sum of the square differences), and use this difference as a similarity measure.

How can I find this offset?

enter image description here

Это было полезно?

Решение

After a relaxing week end, it's easier to see the obvious: it's the average distance between simultaneous points of the data sets.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top