RBF_K: Function to calculate the RBF Kernel of a matrix X with width...

Description Usage Arguments Value Examples

View source: R/RBF_K.R

Description

Function to calculate the RBF Kernel of a matrix X with width g.

Usage

1
RBF_K(x, g)

Arguments

x

an Nx1 numeric matrix with N observations.

g

a positive scalar with the width parameter.

Value

the matrix with the RBF kernel

Examples

1
2
x = rnorm(100,0,1)
k = RBF_K(x,40)

Luisiglm/KBoost documentation built on May 13, 2021, 7:27 p.m.