kernCreate: Initialise a kernel structure.

Description Usage Arguments Details Value See Also Examples

Description

Initialise a kernel structure.

Usage

1
kernCreate(x, kernType, kernOptions=NULL)

Arguments

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.

Details

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.

Value

kern

The kernel structure.

See Also

kernParamInit.

Examples

1
## missing

Example output

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

gptk documentation built on May 2, 2019, 3:27 p.m.

Related to kernCreate in gptk...