Density function and random number generation for the Dirichlet distribution
number of random observations to draw
the Dirichlet distribution's parameters. Can be a vector (one set of parameters for all observations) or a matrix (a different set of parameters for each observation), see “Details”
The Dirichlet distribution is a multidimensional generalization of the Beta distribution where each dimension is governed by an alpha-parameter. Formally this is
alpha is a vector thus the same parameters will be used for all observations.
alpha is a matrix, a complete set of alpha-parameters must be supplied for each observation.
returns a matrix with random numbers according to the supplied alpha vector or matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.