Calculate the densities of a given set of Dirichlet samples. For a random vector x, the density function is defined as:
1/Beta(alpha) prod_i=1:p x_i^alpha_i -1
Where Beta() is the beta function. p is the dimension of x.
Usage
dDir(x, alpha, LOG = FALSE)
Arguments
x
matrix or numeric vector, if matrix every row of x is an observation, if numeric vector, it's the same as a matrix with only one row.