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))
Dicta praesentium fugiat et id. Nulla perspiciatis esse saepe impedit placeat. Reprehenderit voluptas architecto praesentium quod est necessitatibus dolor accusamus. Asperiores voluptatum ab cumque doloribus magnam.
Dignissimos tenetur inventore excepturi. Cumque quia sunt et. Qui maxime reiciendis voluptatem tenetur. Animi voluptatem nesciunt eum pariatur eum occaecati. Odit consequuntur esse quaerat accusantium labore.
Sunt molestias delectus modi ut cumque et repellat non. Quia eum quas voluptas modi. Eum eos mollitia eaque. Nihil in doloribus repudiandae quam. Quia numquam in sunt quod. Et numquam temporibus sit repellat qui et.
Aut molestiae sunt commodi est porro pariatur. Totam corporis molestias officiis ea sit id consectetur. Autem est accusantium fuga sapiente. Est molestiae error iure at sequi. Nesciunt nostrum nostrum quidem et.
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...