rbfdot(sigma = 1)polydot(degree = 1, scale = 1, offset = 1)
tanhdot(scale = 1, offset = 1)
vanilladot()
laplacedot(sigma = 1)
besseldot(sigma = 1, order = 1, degree = 1)
anovadot(sigma = 1, degree = 1)
kernel which extents the
function class. The resulting function implements the given
kernel calculating the inner (dot) product between two vectors.kpar function.kernel argument on almost all
functions in kernlab (eg. ksvm, kpca etc).
Although using one of the above mentioned existing kernel functions as a
kernel argument in various functions in kernlab has the
advantage that use of optimize kernel utilities methods are used
any other function implementing a dot product of class kernel can also be used as a kernel
argument. This allows the user to use test an develop special kernels
for a given data set and algorithm.kernelMatrix, kernelMult, kernelPolrbfkernel <- rbfdot(sigma = 0.1)
rbfkernel
kpar(rbfkernel)
## create two vectors
x <- rnorm(10)
y <- rnorm(10)
## calculate dot product
rbfkernel(x,y)Run the code above in your browser using DataLab