gauss {KLexp} | R Documentation |
Gauss function
gauss(d1, d2, sigma = 0.5)
d1 |
vector1 |
d2 |
vector2 |
sigma |
The hyperparameter of RBF kernel function, which indicates the width. |
Calculate the Gauss function
Zongrui Dai
https://github.com/Zongrui-Dai/Kernel-lasso-feature-expansion
##
data(iris,package = 'datasets')
w<-gauss(iris[,1],iris[,2])
print(w)