local.derivative.ddtw {DTWBI} | R Documentation |
This function estimates the local derivative of a vector. It can be used as an input in dtw() function (package dtw) to align two univariate signals.
local.derivative.ddtw(X)
X |
input vector from which local derivative has to be calculated |
Camille Dezecache, Hong T. T. Phan, Emilie Poisson-Caillault
data(dataDTWBI)
X <- dataDTWBI[, 1]
local.derivative.ddtw(X)
# Plot
plot(X, type = "b", ylim = c(-1, 1))
lines(local.derivative.ddtw(X), col = "red")