| rgmrf | R Documentation |
Draw samples from a multivariate Gaussian distribution specified by a sparse precision matrix. This is numerically efficient for high-dimensional but sparse systems.
rgmrf(n, mean = 0, Q)
n |
Number of samples to draw. |
mean |
Mean vector (or scalar, which will be recycled to match the dimension of |
Q |
Sparse precision matrix ( |
A matrix of samples with rows corresponding to samples and columns to dimensions.
rgmrf(3, mean = c(1, 2, 3), Q = Matrix::Diagonal(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.