From the celebrated Mercer's Theorem, we know that for a mapping ϕ, there exists
a kernel function - or, symmetric bilinear form, K such that
K(x,y)=<ϕ(x),ϕ(y)>
where <,> is
standard inner product. aux.kernelcov is a collection of 20 such positive definite kernel functions, as
well as centering of such kernel since covariance requires a mean to be subtracted and
a set of transformed values ϕ(xi),i=1,2,…,n are not centered after transformation.
Since some kernels require parameters - up to 2, its usage will be listed in arguments section.
Usage
aux.kernelcov(X, ktype)
Arguments
X
an (n×p) data matrix
ktype
a vector containing the type of kernel and parameters involved. Below the usage is
consistent with description
linear
c("linear",c)
polynomial
c("polynomial",c,d)
gaussian
c("gaussian",c)
laplacian
c("laplacian",c)
anova
c("anova",c,d)
sigmoid
c("sigmoid",a,b)
rational quadratic
c("rq",c)
multiquadric
c("mq",c)
inverse quadric
c("iq",c)
inverse multiquadric
c("imq",c)
circular
c("circular",c)
spherical
c("spherical",c)
power/triangular
c("power",d)
log
c("log",d)
spline
c("spline")
Cauchy
c("cauchy",c)
Chi-squared
c("chisq")
histogram intersection
c("histintx")
generalized histogram intersection
c("ghistintx",c,d)
generalized Student-t
c("t",d)
Details
There are 20 kernels supported. Belows are the kernels when given two vectors x,y, K(x,y)