trapeze {slm} | R Documentation |
Trapeze kernel
trapeze(x, width = 0.8)
x |
a vector of real numbers. |
width |
a number between 0 and 1. |
This function computes the values of the trapeze kernel at points x
.
x = seq(-2,2,length=1000)
y = trapeze(x, width=0.5)
plot(x,y)