DEtimeKernDiagCompute: Retrieve the diagonal of the DEtime kernel

DEtimeKernDiagComputeR Documentation

Retrieve the diagonal of the DEtime kernel

Description

Retrieve the diagonal of the DEtime kernel matrix.

Usage

DEtimeKernDiagCompute(kern, X)

Arguments

kern

DEtime kernel structure to be computed

X

A two-column matrix where the first column of this matrix is the time points for control and perturbed conditions and the second column uses '1' to represent time points from control condition and '2' to represent time points from perturbed condition

Details

Kd <- DEtimekernDiagCompute(kern, X) computes the diagonal of a DEtime kernel matrix for the given kernel.

Value

Kd Vector containing computed diagonal elements of the kernel structure

Examples

kern <- list()
kern <- DEtimeKernParamInit(kern)
X <- matrix(c(seq(3:8),seq(4:8),rep(1,6),rep(2,5)),ncol=2)
Kd <- DEtimeKernDiagCompute(kern, X)

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