powered by
Sample Z from 1,2,...,k, with P(Z=i) proportional to q_iN(mu_i,sig2_i).
ncind(y, mu, sig, q)
Sample from {1,...,k}
vector of data
vector of component means
vector of component standard deviations
vector of component weights