Description Usage Arguments Details Value Examples
View source: R/dist_dirichlet.R
Random generation of Dirichlet distribution
1 | rdirichlet(n, alpha)
|
n |
number of random samples |
alpha |
vector of concentration parameters |
Draws independent Gamma random variables and normalises
a matrix of random samples from Diriclet distribution
1 2 3 4 5 | ## Not run:
set.seed(1234)
rdirichlet(10, c(1, 1, 1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.