| rLogDirichlet | R Documentation |
Function for sampling Dirichlet random variables (base-2 normalized via log-sum-exp for stability)
rLogDirichlet(n, alpha)
n |
number of samples |
alpha |
D-vector of Dirichlet parameters |
a D x n matrix of samples
Justin Silverman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.