R: Class "kernel" "rbfkernel" "polykernel", "tanhkernel",...
kernel-class
R Documentation
Class "kernel" "rbfkernel" "polykernel", "tanhkernel", "vanillakernel"
Description
The built-in kernel classes in KERE
Objects from the Class
Objects can be created by calls of the form new("rbfkernel"),
new{"polykernel"}, new{"tanhkernel"},
new{"vanillakernel"}, new{"anovakernel"},
new{"besselkernel"}, new{"laplacekernel"},
new{"splinekernel"} or by calling the rbfdot, polydot, tanhdot,
vanilladot, anovadot, besseldot, laplacedot,
splinedot functions etc..
Slots
.Data:
Object of class "function" containing
the kernel function
kpar:
Object of class "list" containing the
kernel parameters
Extends
Class "kernel", directly.
Class "function", by class "kernel".
Methods
kernelMatrix
signature(kernel = "rbfkernel", x =
"matrix"): computes the kernel matrix
kernelMult
signature(kernel = "rbfkernel", x =
"matrix"): computes the quadratic kernel expression
kernelPol
signature(kernel = "rbfkernel", x =
"matrix"): computes the kernel expansion
kernelFast
signature(kernel = "rbfkernel", x =
"matrix"),,a: computes parts or the full kernel matrix, mainly
used in kernel algorithms where columns of the kernel matrix are
computed per invocation
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(KERE)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/KERE/kernel-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: kernel-class
> ### Title: Class "kernel" "rbfkernel" "polykernel", "tanhkernel",
> ### "vanillakernel"
> ### Aliases: rbfkernel-class polykernel-class vanillakernel-class
> ### tanhkernel-class anovakernel-class besselkernel-class
> ### laplacekernel-class splinekernel-class fourierkernel-class
> ### kfunction-class kernel-class kpar,kernel-method
> ### Keywords: classes
>
> ### ** Examples
>
>
> rbfkernel <- rbfdot(sigma = 0.1)
> rbfkernel
Gaussian Radial Basis kernel function.
Hyperparameter : sigma = 0.1
> is(rbfkernel)
[1] "rbfkernel" "kernel" "function" "OptionalFunction"
[5] "PossibleMethod" "kfunction"
> kpar(rbfkernel)
$sigma
[1] 0.1
>
>
>
>
>
>
> dev.off()
null device
1
>