kde2dw: Two-Dimensional Weighted Kernel Density Estimation

Description Usage Arguments

Description

A weighted two-dimensional kernel density estimation with an axis-aligned bivariate normal kernel, evaluated on a square grid. This is a weighted-version of MASS::kde2d.

Usage

1
kde2dw(x, y, w, h, n = 25, lims = c(range(x), range(y)))

Arguments

x

x coordinate of data

y

y coordinate of data

w

data weights

h

vector of bandwidths for x and y directions. Defaults to normal reference bandwidth (see ‘bandwidth.nrd’). A scalar value will be taken to apply to both directions.

n

Number of grid points in each direction. Can be scalar or a length-2 integer vector.

lims

The limits of the rectangle covered by the grid as ‘c(xl, xu, yl, yu)’.


NREL/kaleidoscope documentation built on May 7, 2019, 6:03 p.m.