R/dtw_wrapper.R

Defines functions DTWDistance

Documented in DTWDistance

# Dynamic time warping distance is calculated by using dtw package

DTWDistance <- function(x, y, ...){
  tryCatch({
  dtw(x, y, ...)$distance}, 
  error=function(e){print(e); NA})   
}

Try the TSdist package in your browser

Any scripts or data that you put into this service are public.

TSdist documentation built on Aug. 31, 2022, 5:09 p.m.