Cpp function: Sample from a Dirichlet distribution

rDirichlet(n, a)

Arguments

n

Number of random vector to return.

a

A positive vector of parameters.

Value

A random matrix with n row from Dirichlet distribution with parameter a.