Learn R Programming

dtw (version 0.1-2)

dtw: Dynamic Time Warp

Description

Compute Dynamic Time Warp and find optimal alignment between two time series.

Usage

dtw(x, y=NULL, distance.function=euclideanSquared, step.pattern="s",
  window.type="none", window.size=10, keep.internals=FALSE)

Arguments

x
Query vector OR local cost matrix
y
Template vector, or unused if cost matrix given
distance.function
Pointwise distance function. See e.g. euclideanSquared
step.pattern
The step pattern. Char: "s" (symmetric), "a" (asymmetric), or an $s$ matrix containing the allowed steps with their cost -- to be documented better window.type{ Windowing function. Char: "none" (none, default),