an m x p matrix of features (if omitted, it defaults to x)
param.kernel
the parameter(s) for the kernel. For this radial
kernel, the parameter is known in the fields as "gamma". For the
polynomial kernel, it is the "degree"
…
unused
Value
An n x m matrix.
Details
For the radial kernel, this computes the function \(\exp(-\gamma||x-y||^2)\) for each pair of rows x,y
from the input matrices. Here g is param.kernel.
For the polynomial kernel, it computes \((xy^T+1)^d\), where d is param.kernel.