powered by
Computes the Dynamic Time Warping distance between functional data. DTW allows for non-linear alignment of curves.
metric.DTW(fdataobj, fdataref = NULL, p = 2, w = NULL, ...)
A distance matrix.
An object of class 'fdata'.
An object of class 'fdata'. If NULL, computes self-distances.
The p in Lp distance (default 2 for L2/Euclidean).
Sakoe-Chiba window constraint. Default is min(ncol(fdataobj), ncol(fdataref)). Use -1 for no window constraint.
Additional arguments (ignored).
fd <- fdata(matrix(rnorm(100), 10, 10)) D <- metric.DTW(fd)
Run the code above in your browser using DataLab