Qymaker | R Documentation |
Precision matrix of cumulative Gaussian process Produces the sparse precision matrix of a cumulative Gaussian process
Qymaker(Qx)
Qx |
The precision matrix of the Gaussian process to be transformed. |
Returns sparse precision matrix of dimension n x n
.
Eirik Myrvoll-Nilsen, eirikmn91@gmail.com
Qsimmer, Qmaker_ar1cum
n=100
sigma=1
rho=0.8
Q_method1 = Qmaker_ar1cum(n,sigma,rho)
Q_ar1 = Matrix::sparseMatrix(
i = c(1,n,2:(n-1),1:(n-1)),
j = c(1,n,2:(n-1),2:n),
x = 1/(1-rho^2)*1/sigma^2*c(1,1,rep(1+rho^2,n-2),rep(-rho,n-1)),
symmetric = TRUE
)
Q_method2 = Qymaker(Q_ar1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.