AUXIL\
kernel_matrix.pro
top kernel_matrix
result = kernel_matrix(G1 [, G2] [, KERNEL=integer] [, GMA=float] [, NSCALE=float] [, DEGREE=integer] [, BIAS=float])
Returns array of kernel functions for data matrices G1 and G2. G1 is an N x m array, G2 is an N x n array. Returned array is n x m. If G2 not present then returns a symmetric, positive definite kernel matrix
Parameters
- G1 in required
data matrix
- G2 in optional
data matrix
Keywords
- KERNEL in optional type=integer
the kernel used 0: linear 1: Gaussian (default) 2: polynomial 3: sigmoid
- GMA in out optional type=float
if not given and KERNEL=1, calculated from the data: GMA=1/(2*(nscale*scale)^2) where scale = average distance between observations in the input space, otherwise defaults to 1/N
- NSCALE in optional type=float
multiple of scale for GMA when KERNEL=1 (default 1.0)
- DEGREE in optional type=integer
degree of pylynomial kernel (default 2)
- BIAS in optional type=float
bias of polynomial or sigmoid kernel (default 1.0)
Author information
- Author:
Mort Canty (2009)
File attributes
Modification date: | Wed Feb 02 15:27:19 2011 |
Lines: | 80 |
Docformat: | rst rst |