R/depa.R

Defines functions depa

Documented in depa

#' Epanechnikov kernel
#'
#' @param xx the evaluation points.
#' @param loc the location parameter (normalized to be 0).
#' @param scale the scale parameter (normalized to be 1).
#'
#' @return values.
#' @export
#' @keywords internal
#' @examples
#' depa(0)
#' depa(seq(-1,1,by=0.05))
#'
depa <- function(xx,loc=0,scale=1){
  nx <- (xx-loc)/scale
  return((scale^{-1})*(3/4)*(1-nx^2)*(abs(nx)<1))
}

Try the QTE.RD package in your browser

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

QTE.RD documentation built on Aug. 30, 2025, 9:06 a.m.