rectangular function

Rectangular kernel

Rectangular kernel

Vectorized evaluation of the rectangular kernel.

rectangular(x, a = -0.5, b = 0.5)

Arguments

  • x: Numeric vector.
  • a: Numeric scalar: lower bound of kernel support; defaults to -0.5.
  • b: Numeric scalar: upper bound of kernel support; defaults to 0.5.

Returns

A numeric vector of the rectangular kernel evaluated at the values in x.

Examples

kader:::rectangular(x = seq(-1, 1, by = 0.1)) curve(kader:::rectangular(x), from = -1, to = 1)
  • Maintainer: Gerrit Eichner
  • License: GPL-3
  • Last published: 2017-10-04