fast_rmvnorm_chol | R Documentation |
Generate multivariate Normal draws. The function does not check the arguments, use at your own risk.
fast_rmvnorm_chol(nparticles, mean, chol)
mean |
A vector of size d specifying the mean vector of the multivariate Normal |
chol |
A matrix of size d x d specifying the upper triangular Cholesky factor
of the covariance matrix of the multivariate Normal target,
for instance obtained using the |
n |
An integer >= 1 specifying the desired number of draws |
A matrix of size n x d containing n d-dimensional multivariate Normal draws (one per row)
Sigma <- diag(1, 5, 5) Sigma[1,2] <- Sigma[2,1] <- 0.3 fast_rmvnorm_chol(2, rep(0, 5), chol(Sigma))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.