R/longitudinalData_wrapper.R

FrechetDistance <- function (x, y, tx=NULL, ty=NULL, ...) {
  
  if(is.null(tx)){
    tx <- c(1:length(x))
  }
  
  if(is.null(ty)){
    ty <- c(1:length(y))
  }
  
  tryCatch({
  distFrechet(tx, x, ty, y, ...)},
  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.