We have 2 types of Dirichlet distributions, namely, Type 1 and Type 2.
Like other functions, dmxDir1 and dmxDir2 are
to evaluate densities, while rmxDir1 and rmxDir2 generate
random samples accordingly to the model provided.
Usage
dmxDir1(X, a)
dmxDir2(X, a)
rmxDir1(p, a, S)
rmxDir2(p, a)
Arguments
X
a (p-by-p-by-r) array whose density be computed.
a
weight vector of length r+1.
p
the dimension for sample matrix.
S
a (p-by-p) covariance matrix required for sampling from Wishart.