Learn R Programming

gsdensity (version 0.1.2)

kde2d.weighted: 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.

Description

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.

Usage

kde2d.weighted(x, y, w, h, n, lims = c(range(x), range(y)))

Value

weighted kde2d estimation

Arguments

x

x

y

y

w

w

h

h

n

n

lims

lims