ks2d returns the 2D kernel density at point (x, y) with specified bandwidth method and density method. Refer to this page for detailed algorithm.
vector ks2d(vector vx, vector vy[, int bandwidth, int grid, int interp, int binned])
vx
xy
bandwidth
grid
interp
binned
Returns the 2D kernel density with specified bandwidth method and density method.
ks2density