|
Algorithm 2 DTW-based subsequence search algorithm |
Input
reference pattern , a longer data stream , with , and a threshold Output a list of repetitions of X within Y having, individually, a DTW lower than . The list is ranked depending on the individual DTW
-
1:
-
2:
compute the accumulated cost matrix D between X and Y
-
3:
compute the distance function
-
4:
find
-
5:
Ifthen STOP
-
6:
find by using Optimal warping path algorithm but initialized in instead of
-
7:
updating as:
-
8:
Set for every b in a suitable neighborhood of
-
9:
GO TO STEP 3
|