local.derivative.ddtw {DTWBI} | R Documentation |
Local derivative estimate to compute DDTW
Description
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.
Usage
local.derivative.ddtw(X)
Arguments
X |
input vector from which local derivative has to be calculated |
Author(s)
Camille Dezecache, Hong T. T. Phan, Emilie Poisson-Caillault
Examples
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")
[Package DTWBI version 1.1 Index]