R/cpp_wrappers.R

.interp <- function(m, fits, slopes, at) {
  if(any(is.nan(fits))) {
    ind <- !is.nan(fits)
    c_interp(m[ind], fits[ind], slopes[ind], at)
  } else {
    c_interp(m, fits, slopes, at)
  }
}

Try the stlplus package in your browser

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

stlplus documentation built on May 2, 2019, 6:10 a.m.