rdirichlet | R Documentation |
Simulates from a Dirichlet distribution
rdirichlet(n=1, alpha)
n |
The number of samples. |
alpha |
The shape parameters, need to be positive. |
Return an n x length(alpha) matrix where each row is drawn from a Dirichlet.
dirmult
rdirichlet(n=100, alpha=rep(1,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.