K: Kernel function

Description Usage Arguments Value Examples

View source: R/Kernel.R

Description

K returns the value of the kernel function at its argument(s).

Usage

1
K(z, type = "Gaussian")

Arguments

z

A vector or matrix containing where the kernel is evaluated. If it is a matrix each column is interpreted as a vector.

type

A character string specify the used kernel function. Current options are "Gaussian" and...

Value

If the input is a vector the value K(z) will be returned. If the input is a matrix a vector K(z_1), …, K(z_m) will be returned, where z = [z_1, …, z_m].

Examples

1
2
3
4
5
z <- rnorm(3)
K(z, "Gaussian")

Z <- matrix(rnorm(12), 3, 4)
K(Z, "Gaussian")

Epsilon127/ldder documentation built on March 7, 2020, 7:47 a.m.