Description Usage Arguments Value Examples
Multivariate normal probability density function
1 | density_normal(x, mu, Sigma_inv, logret = FALSE)
|
x |
A numeric matrix, each column of which is a point at which the density is to be evaluated. |
mu |
A numeric vector, the mean of the distribution. |
Sigma_inv |
A numeric matrix, the precision matrix (inverse of the of the variance-covariance matrix) of the distribution. |
logret, |
a logical value indicating whether to return the log density. Defaults to FALSE. |
A column vector whose jth element is the density of a multivariate normal distribution with mean mu and precision matrix Sigma_inv evaluated at the jth column of x. If logret is true, the natural logarithm of the density is returned.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.