Learn R Programming

KLexp (version 1.0.0)

gauss: Gauss function

Description

Gauss function

Usage

gauss(d1, d2, sigma = 0.5)

Arguments

d1

vector1

d2

vector2

sigma

The hyperparameter of RBF kernel function, which indicates the width.

Value

Calculate the Gauss function

Examples

Run this code
# NOT RUN {
##
data(iris,package = 'datasets')
w<-gauss(iris[,1],iris[,2])
print(w)
# }

Run the code above in your browser using DataLab