powered by
Function for sampling Dirichlet random variables (base-2 normalized via log-sum-exp for stability)
rLogDirichlet(n, alpha)
a D x n matrix of samples
number of samples
D-vector of Dirichlet parameters
Justin Silverman