These functions are really convenience functions.
Function rdirichlet() returns random samples drawn from a
Dirichlet distribution. If second argument H is a
hyper2 object, it is tested [with is.dirichlet()] for
being a Dirichlet distribution. If so, samples from it are returned.
If not, (e.g. icons), an error is given. If H is not a
hyper2 object, it is interpreted as a vector of parameters
\(\alpha\) [not a vector of powers].
Function rp_unif() returns uniformly distributed vectors,
effectively using H*0; but note that this uses Dirichlet
sampling which is much faster and better than the Metropolis-Hastings
functionality documented at rp.Rd.
Functions GD() and GD_wong() return a likelihood
function corresponding to the Generalized Dirichlet distribution as
presented by Connor and Mosimann, and Wong, respectively. In
GD_wong(), alpha and beta must be named vectors;
the names of alpha give the names of
\(x_1,\ldots,x_k\) and the last element of beta
gives the name of \(x_{k+1}\).