Rectangular kernel
Vectorized evaluation of the rectangular kernel.
rectangular(x, a = -0.5, b = 0.5)
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.A numeric vector of the rectangular kernel evaluated at the values in x
.
kader:::rectangular(x = seq(-1, 1, by = 0.1)) curve(kader:::rectangular(x), from = -1, to = 1)