Description Usage Arguments Details Value References See Also
Fast version of univariate dynamic time warping (unconstrained, symmetric1
step pattern) which uses a cyclic access strategy with a smaller cost matrix;
inspired by the C implementation of dynamic time warping in
dtwclust::dtw_basic()
, but cuts even more overhead.
1 | DTWDist_fast(x, y, cid = FALSE, cortK = -1, normalize = FALSE)
|
x |
1st numeric vector/time series. |
y |
2nd numeric vector/time series. |
cid |
Should the distance be made "complexity-invariant"
( |
cortK |
Should the temporal behavior (correlation) of the time series'
diff vectors be considered ( |
normalize |
Divide by the length of the longer time series (= minimum amount of assignment steps) to account for series of different lengths in your dataset. |
Be aware that it is not really a distance in the strict sense, as DTW violates the triangle inequality.
The distance as double.
Berndt, D. J. & Clifford, J. (1994). Using dynamic time warping to find patterns in time series. In Proceedings of the 3rd international conference on knowledge discovery and data mining (pp. 359–370). AAAI Press.
Other DTW functions: DTWDistMult_fast
,
DTWDistSakoeChibaMult_fast
,
DTWDistSakoeChiba_fast
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.