Sample from a Dirichlet distributionSource:
Sample finite-dimensional vectors to use as latent position vectors in random dot product graphs
Integer scalar, the sample size.
Numeric vector, the vector of \(\alpha\) parameter for the Dirichlet distribution.
dim (length of the
alpha vector for
n matrix, whose columns are the sample
sample_dirichlet() generates samples from the Dirichlet distribution
with given \(\alpha\) parameter. The sample is drawn from