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

2 vues (au cours des 30 derniers jours)
Knut Skaug
Knut Skaug le 16 Fév 2023
Commenté : Knut Skaug le 16 Fév 2023
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 commentaires
Eamonn
Eamonn le 16 Fév 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 le 16 Fév 2023
Thank you for the suggestion - I will try it out

Connectez-vous pour commenter.

Réponses (1)

Star Strider
Star Strider le 16 Fév 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.)

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by