According to the ICDM publication, the calculation of MPdist is pretty straightforward. For two time series, A and B, of identical length and a window size, m, equal to, say, 50:
- Compute the matrix profile AB for
stumpy.stump(A, m=50, T_B=B, ignore_trivial=False)
- Compute the matrix profile BA for
stumpy.stump(B, m=50, T_B=A, ignore_trivial=False)
- Concatenate both matrix profiles into PABBA
- Choose some
k that is 5 percent of 2 * n
As mentioned on on page 3 of the above paper, "section, this data structure PABBA
contains all the information we need to compute the MPdist."
The pseudocode can be found here.
The supporting site can be found here
According to the ICDM publication, the calculation of MPdist is pretty straightforward. For two time series,
AandB, of identical length and a window size,m, equal to, say, 50:stumpy.stump(A, m=50, T_B=B, ignore_trivial=False)stumpy.stump(B, m=50, T_B=A, ignore_trivial=False)kthat is 5 percent of2 * nAs mentioned on on page 3 of the above paper, "section, this data structure PABBA
contains all the information we need to compute the MPdist."
The pseudocode can be found here.
The supporting site can be found here