gauss: Gauss function

Description Usage Arguments Value Author(s) Source Examples

View source: R/Kernel_lasso.R

Description

Gauss function

Usage

1
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

1
2
3
4
##
data(iris,package = 'datasets')
w<-gauss(iris[,1],iris[,2])
print(w)

KLexp documentation built on Aug. 21, 2021, 5:07 p.m.

Related to gauss in KLexp...