Functions to compute the density of or generate random deviates from the Dirichlet distribution
ddirichlet(x, alpha)
rdirichlet(n, alpha)ddirichlet returns a vector containing the Dirichlet density
for the corresponding rows of x.
rdirichlet returns a matrix with n rows, each containing a
single Dirichlet random deviate.
The Dirichlet distribution is the multidimensional generalization of the beta distribution. It is the canonical Bayesian distribution for the parameter estimates of a multinomial distribution.
ddirichlet(): Dirichlet distribution function.
rdirichlet(): Generate dirichlet random deviates.