qkernel-class {qkerntool} | R Documentation |
The built-in kernel classes in qkerntool
Objects can be created by calls of the form new("rbfqkernel")
,
new{"nonlqkernel"}
, new{"laplqkernel"}
,
new{"ratiqkernel"}
, new{"multqkernel"}
,
new{"invqkernel"}
, new{"wavqkernel"}
,
new{"powqkernel"}
, new{"logqkernel"}
,
new{"cauqkernel"}
, new{"chiqkernel"}
,
new{"studqkernel"}
or by calling the rbfbase
, nonlbase
, laplbase
, ratibase
,
multbase
, invbase
, wavbase
, powbase
,
logbase
, caubase
, chibase
, studbase
functions etc..
.Data
:Object of class "function"
containing
the kernel function
qpar
:Object of class "list"
containing the
kernel parameters
signature(kernel = "rbfqkernel", x =
"matrix")
: computes the qkernel matrix
Yusen Zhang
yusenzhang@126.com
qkfunc <- rbfbase(sigma=1,q=0.8)
qkfunc
qpar(qkfunc)
## create two vectors
x <- rnorm(10)
y <- rnorm(10)
## calculate dot product
qkfunc(x,y)