qkernmatrix calculates the qkernel matrix \(K_{ij} = k(x_i,x_j)\) or \(K_{ij} =
k(x_i,y_j)\).
Usage
# S4 method for qkernel
qkernmatrix(qkernel, x, y = NULL)
Arguments
qkernel
the kernel function to be used to calculate the qkernel
matrix.
This has to be a function of class qkernel, i.e. which can be
generated either one of the build in
kernel generating functions (e.g., rbfbase etc.) or a user defined
function of class qkernel taking two vector arguments and returning a scalar.
x
a data matrix to be used to calculate the kernel matrix
y
second data matrix to calculate the kernel matrix
Value
qkernmatrix returns a conditionally negative definite matrix with a zero diagonal element.
Details
Common functions used during kernel based computations.
The qkernel parameter can be set to any function, of class
qkernel, which computes the kernel function value in feature space between two
vector arguments. qkerntool provides more than 10 qkernel functions
which can be initialized by using the following
functions: