based on https://stat.ethz.ch/pipermail/r-help/2006-June/107405.html this is called by compute.spatial.kld to calculate the kernel density estimation in 2d space with each data point weighted.
kde2d.weighted(x, y, w, h, n, lims = c(range(x), range(y)))weighted kde2d estimation
x
y
w
h
n
lims