Description Usage Arguments Value References See Also Examples
View source: R/draw.multivariate.laplace.R
This function implements pseudo-random number generation for a multivariate Laplace (double exponential) distribution with pdf
f(x|μ,Σ,γ)=c\exp(-((x-μ)^{T}Σ^{-1}(x-μ))^{γ/2})
for -∞ < x < ∞ and c=\frac{γΓ(d/2)}{2π^{d/2}Γ(d/γ)}|Σ|^{-1/2}, Σ is symmetric and positive definite, where μ, Σ, and γ are the mean vector, the variance-covariance matrix, and the shape parameter, respectively.
1 | draw.multivariate.laplace(no.row,d,gamma,mu,Sigma)
|
no.row |
Number of rows to generate. |
d |
Number of variables to generate. |
gamma |
Shape parameter. |
mu |
Vector of means. |
Sigma |
Variance-covariance matrix. |
A no.row \times d matrix of generated data.
Ernst, M. D. (1998). A multivariate generalized Laplace distribution. Computational Statistics, 13, 227-232.
1 2 3 4 5 6 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.