discretize.kernel: Discretize Kernel

Description Usage Arguments Value Author(s)

Description

Computes a discrete approximation of the kernel.

Usage

1
discretize.kernel(grid, kern.fun, ..., grid.fun = NULL, scale = TRUE)

Arguments

grid

a list created by the mvlinbin function.

kern.fun

a function for evaluating the kernel. The first argument must be a matrix whose rows contain the points where the density is to be evaluated. See, for example, the dmvnorm function in the mvtnorm package.

...

additional arguments are passed to kern.fun.

grid.fun

a function that returns the grid points where the kernel will be evaulated.

scale

a logical value. If TRUE then the kernel is scaled so that it integrates to 1 on the provided grid.

Value

a list with class kernel contining the following elements.

axes

a numeric matrix whose columns contain the grid points along each axis where the kernel was evaluated.

z

a numeric array containing the discrete representation of the kernel.

dft

a numeric array containing the discrete Fourier transform of the kernel z.

kern.fun

the name of kern.fun.

params

a list containing the pearameters passed to kern.fun through ....

Author(s)

Kjell Konis kjell.konis@me.com


bpkde documentation built on May 2, 2019, 10:25 a.m.