DEtimeKernExpandParam: Update a DEtime kernel structure with new parameters

DEtimeKernExpandParamR Documentation

Update a DEtime kernel structure with new parameters

Description

Update a DEtime kernel structure with new parameters.

Usage

DEtimeKernExpandParam(kern, params)

Arguments

kern

The DEtime kernel structure whose parameters to be expanded

params

Vector of parameters

Details

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.

Value

kern Updated DEtime kernel structure

See Also

DEtimeKernExtractParam

Examples

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)

ManchesterBioinference/DEtime documentation built on Feb. 9, 2024, 12:10 p.m.