gde: Gaussian-kernel density estimation

Description Usage Arguments Value

View source: R/kernel_density.R

Description

Estimates density of data in arbitrary number of dimensions

Usage

1
gde(x, xgrid = NULL, b = 1)

Arguments

x

a matrix or data-frame of data points. Number of columns will be interpreted as dimensionality

xgrid

a matrix or data-frame of point in which density will be computed, the same number of columns as in x. If NULL, will assume a uniform grid in the data range, 30 points in each dimension.

b

a vector of bandwidths (standard deviations of the Gaussian kernel). If the length is not equal to the number of columns in x, will use the first element of b in all dimensions.

Value

a data-frame that is xgrid with the additional "density" column


rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.