getcov.zz | R Documentation |
Takes vector of times T and parameters nu, tau, v0, and returns the zz portion of the covariance matrix.
getcov.zz(t1, t2, tau, t0 = 0)
getS.zz(T, tau, t0 = 0)
t1 |
first time |
t2 |
second time |
tau |
characteristic time scale. |
t0 |
initial time |
T |
time vector of length n |
either a 2n x 2n VV-VZ-ZZ matrix or n x n ZZ matrix.
if (requireNamespace('gridExtra',quietly = TRUE))
warning("please install \"gridExtra\" first to run this example")
T <- cumsum(rexp(10))
# separated into Sigma_vv, Sigma_vz (assymetric), and Sigma_zz
Sigma <- Matrix::Matrix(getSigma.VZ(T, nu=2, tau=5, t0=2))
#i1 <- image(Sigma[1:10,1:10], main="V-V", colorkey=TRUE, useRaster=TRUE)
#i2 <- image(Sigma[11:20,1:10], main="V-Z", colorkey=TRUE, useRaster=TRUE)
#i3 <- image(Sigma[11:20,11:20], main="Z-Z", colorkey=TRUE, useRaster=TRUE)
#gridExra::grid.arrange(i1,i2,i3,ncol=3)
# And the complete matrix (log transformed):
#image(log(Sigma), colorkey=TRUE, main="log(Sigma)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.