tinyDP | R Documentation |
tinyDP: A fast dynamic time warping
tinyDP( x, y, window = 50, type = 1, distfunc = c(euclid2, euclid, manhattan, negcos) )
x |
A matrix |
y |
A matrix |
window |
The window width with which the DTW is calculated, |
type |
If type==1, the DTW has no restriction on the length difference between x and y. If type==2, the length of the one matrix should be more than the half and less than the twice of the other matrix. |
distfunc |
The distance function |
A list contains three elements: xsize: length (number of rows) of x ysize: length (number of rows) of y opt: n times 2 matrix, where a row contains the corresponding indices of x and y score: the matching distance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.