gauss {KLexp} | R Documentation |
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
Author(s)
Zongrui Dai
Source
https://github.com/Zongrui-Dai/Kernel-lasso-feature-expansion
Examples
##
data(iris,package = 'datasets')
w<-gauss(iris[,1],iris[,2])
print(w)
[Package KLexp version 1.0.0 Index]