powered by
Square kernel function - weights all points within bandwidth as 1, all others as 0.
square.kernel(d, bandwidth)
Numeric vector of distances.
Numeric bandwidth.
A numeric vector of kernel weights.