dtw. Because of that, it should be slightly faster, while still supporting the
most common options.
dtw_basic(x, y, window.size = NULL, norm = "L1", step.pattern = symmetric2, backtrack = FALSE, normalize = FALSE, ..., gcm = NULL, error.check = TRUE)NULL means no constraint.symmetric1 or symmetric2 supported
here. See stepPattern.symmetric2.NROW(y)+1 columns and NROW(x)+1 rows for backtrack = TRUE or
2 rows for backtrack = FALSE. Used internally for memory optimization. If
provided, it will be modified in place by C code, except in the parallel
version in proxy::dist which ignores it for thread-safe reasons.backtrack = TRUE, a list with:distance: The DTW distance.
index1: x indices for the matched elements in the warping path.
index2: y indices for the matched elements in the warping path.
backtrack is TRUE, the mapping of indices between series is returned in a list.The windowing constraint uses a centered window. The calculations expect a value in
window.size that represents the distance between the point considered and one of the edges
of the window. Therefore, if, for example, window.size = 10, the warping for an
observation $x_i$ considers the points between $x_{i-10}$ and $x_{i+10}$, resulting
in 10(2) + 1 = 21 observations falling within the window.