DEtimeKernExpandParam | R Documentation |
Update a DEtime kernel structure with new parameters.
DEtimeKernExpandParam(kern, params)
kern |
The DEtime kernel structure whose parameters to be expanded |
params |
Vector of parameters |
DEtimeKernExpandParam
returns a DEtime kernel structure filled with the parameters in the given vector. This is used as a helper function to enable parameters to be optimised in, for example, the optimisation functions.
kern Updated DEtime kernel structure
DEtimeKernExtractParam
kern <- list()
kern <- DEtimeKernParamInit(kern)
X <- matrix(c(seq(0,4),seq(0,4), rep(1,5),rep(2,5)),ncol=2)
K <- DEtimeKernCompute(kern, X)
### the inverseWidth, variance and testing perturbation point for DEtime Kernel function
params <- c(2, 1, 20)
Knew <- DEtimeKernExpandParam(K, params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.