R/K_Y.R

Defines functions K_Y

Documented in K_Y

#' This is an internal function. The anti-derivative of the kernel function.
#'
#' @param x A numeric argument.
#' @return The value of the anti-derivative function at x.

K_Y <- function(x)
{
  return( (x < 0 & x >-1) * (-x^4/2 -x^3 + x + 1/2) + (x >= 0 & x < 1) * (x^4/2 -x^3 + x + 1/2) + (x >= 1))
}

Try the NonlinearRDD package in your browser

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

NonlinearRDD documentation built on Nov. 26, 2023, 5:07 p.m.