R/dilation.R

Defines functions dilation

Documented in dilation

dilation <- function(y,span)
  {
    y <- na.omit(y)
    nmes <- names(y)
    res <- .C("dilation",
              y = as.double(y),
              nym = as.integer(length(y)),
              sp = as.integer(span),
              ey = double(length(y)),
              PACKAGE = "VPdtw")$ey
    res <- rev(.C("dilation",
                  y = as.double(rev(res)),
                  nym = as.integer(length(res)),
                  sp = as.integer(span),
                  ey = double(length(res)),
                  PACKAGE = "VPdtw")$ey)
    names(res) <- nmes
    res
  }

Try the VPdtw package in your browser

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

VPdtw documentation built on July 14, 2022, 5:07 p.m.