samples from the Dirichlet distribution.
rDirichlet(K, alpha = 0.1)
order of the sample.
alpha parameter of the distribution (i.e. alpha repeated K times).
numeric vector, which values are in [0,1] and sum to 1.
temp <- rDirichlet(4)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.