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))
Nihil et ut qui dolore et autem. Qui enim veritatis amet. Voluptatum consequatur in nihil sint est quis. Qui ipsa nobis et quia vel qui magnam magnam. Laborum suscipit quia beatae optio eos qui veritatis labore.
Neque fuga sit officia dolores ipsam. Fugiat magni aspernatur dolore et. Qui ea maiores enim in sequi maxime. Nihil quidem consequatur rerum voluptas odio. Facere aliquam voluptas ut velit dolor.
Sapiente voluptate velit ut dicta eius sit doloremque. Perferendis sit ipsam ut.
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...