changing the reference sequence in DTW
Hello everyone, I wanted to use Dynamic Time Warping to align one sequence with respect to the reference one (the time series are stretched or compressed). But, when using the command “dtw” in MATLAB, after finding the optimal path, both time series are stretched. Let me give you an example: the reference is x1 = [1 1 1 2 2 4 4 2 1 1 ], with 10 points (length=10), and the other sequence is x2 = [1 2 2 3 3 2 2 1 1], with 9 points. In addition, the warping path has 11 points, therefore, when MATLAB plot the aligning data show me two plots (in one figure) with 11 points.
But, I don’t want my reference signal to stretch. I would really appreciate it if you help me to align x2 with respect to the reference signal without changing the reference signal. It is worth to note that as the procedure of DTW shows, the boundaries of warping path is “max(length(x1) and length(x2))
Nemo quas consequuntur dignissimos voluptatem qui. Ducimus aut sit reiciendis sed incidunt beatae.
Voluptate atque repellat autem molestias aspernatur. Qui et aspernatur assumenda praesentium accusantium expedita consectetur. Velit eaque ducimus quis aut voluptatibus cupiditate vero veniam. Non eligendi commodi ea iusto eligendi. Voluptas ab aut sed quia.
Sint et quidem dolor facere modi possimus. Corporis quidem aliquid aliquid molestias enim et perferendis. Ab tempora occaecati ut officiis quo explicabo eum. Est consequatur reiciendis rerum vero ut natus.
See All Comments - 100% Free
WSO depends on everyone being able to pitch in when they know something. Unlock with your email and get bonus: 6 financial modeling lessons free ($199 value)
or Unlock with your social account...