MatInterpolate | R Documentation |
Linearly interpolates matrices a1 and a2. Used in dynamical covariance structures. Typically positive definite, but not a requirement for this function.
MatInterpolate(t, a1, a2)
t |
evaluation points. t[1] should correspond to a1 and t[length(t)] to a2. |
a1, |
a2 (positive definite) matrices of same dimensions. |
a1 and a2 should have same size. This is NOT checked.
A three-dimensional array of interpolated matrices
kovMat
A1 <- matrix(c(2,1,0,1,2,0.5, 0, 0.5, 2), 3, 3) A2 <- diag(3) A1 A2 MatInterpolate(A1, A2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.