x: Vector or matrix containing the value at which to evaluate the density. If a matrix, the density is evaluated for each row. Rows are renormalized to ensure they add up to 1
q: Dirichlet parameters. Must have the same length as ncol(x), or length 1 (in which case a symmetric Dirichlet density is valuated)
logscale: For logscale==TRUE, dimom returns the natural log of the prior density
Returns
Density of a Dirichlet(q) distribution evaluated at each row of x