rdir | R Documentation |
Generate random variates from the Dirichlet distribution
rdir(n, alpha)
n |
Number of random variates to generate (single integer) |
alpha |
Concentration parameter (vector of positive numbers) |
An n
by d
matrix, where d
is the length of alpha
.
rdir(10, 1:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.