Matching a target time series to other time series using dynamic time warping

5 visualizaciones (últimos 30 días)
Hello,
I have one data matrix A of size = n by m , where n is the number of observations and m is the number of variables, (f.ex. 1000 by 20)
I also have a target time series x of size n by 1 (f.ex 1000 by 1)
I would like to use dynamic time warping to find a cluster in A that has the smallest distance to x relative to other variables in A.
Essentially, find the variables in A that are most similar to the target variable x.
How can I do this?
Kind regards
Knut
  2 comentarios
Eamonn
Eamonn el 16 de Feb. de 2023
Are you sure you need DTW?
If Eucldean distance would work, the MASS is unbelievably fast (and easy) (matlab code here [a])
If you do need to use DTW, you probably need to set the warping window width , see https://www.cs.unm.edu/~mueen/DTW.pdf
[a] https://www.cs.unm.edu/~mueen/FastestSimilaritySearch.html
Knut Skaug
Knut Skaug el 16 de Feb. de 2023
Thank you for the suggestion - I will try it out

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 16 de Feb. de 2023
See if the Signal Processing Toolbox dtw function (introduced in R2016a), or related functions linked to in that page, will do what you want. (I have used findsignal, however not dtw, so I have no specific experience with it.)

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by