R/default_psi.R

Defines functions default_psi

Documented in default_psi

#' Default psi list
#' 
#' List with the same local feature functions psi as in the original paper
#' 
#' @return List with 4 different local features psi
#' 
#' @examples
#' default_psi()
#' 
#' @export
default_psi <-
function() list(
  function(x, t) rep(1, length(t)),
  function(x, t) x(t),
  function(x, t) pmax(x(t)-x(t-1), 0),
  function(x, t) -pmin(x(t)-x(t-1), 0)
)

Try the xwf package in your browser

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

xwf documentation built on Feb. 20, 2020, 9:07 a.m.