Rectangular kernel
rectangle(x)
x
a vector of real numbers.
This function computes the values of the rectangular kernel at points x.
x = seq(-2,2,length=1000) y = rectangle(x) plot(x,y)