Description Usage Arguments Value Examples
Takes a GMRF object and, possibly, associated permutation matrix and Cholesky factor of permuted precision matrix, to generate samples.
| 1 | sample_GMRF(G, L = NULL, reps = 1, P = NULL)
 | 
| G | object of class  | 
| L | Cholesky factor of the precision matrix, if  | 
| reps | number of samples to generate | 
| P | permutation matrix | 
a matrix of size n by reps
| 1 2 3 | G <- GMRF_RW()
G <- setPrecision(G, getPrecision(G) + 0.01*Imat(nrow(G)))
X <- sample_GMRF(G,reps=10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.