Simulation algorithm of Dombry et al. (2015)
.rdirmixspec(n, d, alpha, weight)an n by d sample from the spectral distribution
sample size
dimension of the 1-sample
a \(d \times n\) dimensional vector of positive parameter values for the Dirichlet vector
a m vector of mixture weights, which sum to 1