kernel.constants: Kernel constants

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Calculates several constants of a (product) kernel function.

Usage

1
kernel.constants(kernel = "biweight", d = 1, product = TRUE)

Arguments

kernel

text string, see kernel.function

d

integer (dimension of the kernel)

product

(if d>1) product or spherical kernel

Details

The constants which are calculated are the second moment, the square norm and the canonical bandwidth of the kernel (only the two latter terms depend on the dimension d).

Value

List with components:

m2

second moment

c2

square norm

d0

canonical bandwidth

Author(s)

Marlene Mueller

See Also

kernel.function

Examples

1
2
3
  kernel.constants()                  ## default (biweight), d=1
  kernel.constants("epanechnikov",1)  ## epanechnikov, d=1
  kernel.constants("epanechnikov",2)  ## product epanechnikov, d=2

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