tinyDP: tinyDP: A fast dynamic time warping

View source: R/tinyDP.R

tinyDPR Documentation

tinyDP: A fast dynamic time warping

Description

tinyDP: A fast dynamic time warping

Usage

tinyDP(
  x,
  y,
  window = 50,
  type = 1,
  distfunc = c(euclid2, euclid, manhattan, negcos)
)

Arguments

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

Value

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


akinori-ito/tinyDP documentation built on March 17, 2023, 4:29 p.m.