Description Usage Arguments Details Value See Also Examples
Initialise a kernel structure.
1 | kernCreate(x, kernType, kernOptions=NULL)
|
x |
Input data values (from which kernel will later be computed). |
kernType |
Type of kernel to be created, some standard types are 'lin', 'rbf', 'white', 'bias' and 'rbfard'. If a cell of the form 'cmpnd', 'rbf', 'lin', 'white' is used a compound kernel based on the sum of the individual kernels will be created. The 'cmpnd' element at the start of the sequence is optional. Furthermore, 'tensor', 'rbf', 'lin' can be used to give a tensor product kernel, whose elements are the formed from the products of the two indvidual kernel's elements and 'multi', 'rbf', ... can be used to create a block structured kernel for use with multiple outputs. Finally the form 'parametric', struct('opt1', val1), 'rbf' can be used to pass options to other kernels. |
kernOptions |
the kernel options. |
kern <- kernCreate(x, kernType)
input points and a kernel type.
kern <- kernCreate(dim, kernType)
creates a kernel matrix structure given the dimensions of the design matrix and the kernel type.
kern |
The kernel structure. |
1 | ## missing
|
Loading required package: Matrix
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: 'spam'
The following objects are masked from 'package:base':
backsolve, forwardsolve
Loading required package: maps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.