Learn R Programming

DTWBI (version 1.1)

local.derivative.ddtw: 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

Examples

Run this code
# 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