powered by
The density of the multivariate normal distribution
dmvnorm0(x, mean, sigma, log = FALSE)
vector or matrix of quantiles. If x is a matrix, each row is taken to be a quantile.
numeric vector; the mean vector.
numeric matrix; the covariance matrix.
logical; if TRUE, returns the log value.
# NOT RUN { n <- 10 d <- 2 sigma <- crossprod(randn(d, d)) x <- rmvnorm0(n, mean = numeric(d), sigma = sigma) dmvnorm0(x, mean = numeric(d), sigma = sigma) # }
Run the code above in your browser using DataLab