powered by
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)
input vector from which local derivative has to be calculated
# NOT RUN { 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") # }
Run the code above in your browser using DataLab