Learn R Programming

kdetrees (version 0.1.3)

normkern: Generalized Gaussian kernel

Description

The un-normalized Gaussian kernel function: exp(-(abs(x/bw))^delta)/bw

Usage

normkern(x, bw = 1, delta = 2L)

Arguments

x
places to evaluate kernel
bw
bandwidth values
delta
shape parameter for kernel

Value

  • an object of the same type as x with the kernel evaluations

Details

The bandwidth parameter may be used in any way that makes sense in the above R expression. In particular, it may be a single value, for a constant bandwidth, or a vector, with each element corresponding the bandwidth of the kernel to be placed at each respective observation.