Description Usage Arguments Details Value See Also Examples
View source: R/multivariatenormal.R
Function to generate draws from a multivariate Normal distribution.
1 |
n |
is the number of desired samples |
mean |
is the mean vector |
covariance |
is the covariance matrix |
This function does not check anything (i.e. that the given covariance is PSD). Thus it is faster than functions in standard packages, but more risky.
a n x d matrix where d is both the length of mean
and the dimension of covariance
. Each row contains a draw from
the desired multivariate Normal.
rmvnorm_cholesky
, dmvnorm
, dmvnorm_cholesky_inverse
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.