R/kernel.e.R

Defines functions kernel.e

Documented in kernel.e

#' @title Epanechnikov kernel
#' @description Evaluates the Epanechnikov kernel
#' @param u vector of observations
#' @return evaluation of the Epanechnikov kernel
#' @export kernel.e
#' @examples
#' x = rnorm(100,1,2)
#' kernel.e(x)
kernel.e <- function(u){
3/4*(1-u^2)*(u<1)*(u>-1)
}

Try the OVL.CI package in your browser

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

OVL.CI documentation built on Nov. 14, 2023, 1:06 a.m.