A Gibbs update step for K, the cluster membership vector.
updateK(G, K, z, mu, sigma2, Id, lambda)
The number of clusters being fitted.
The cluster membership vector.
The n x d matrix of latent locations.
The G x d matrix of cluster means.
The G vector of cluster covariances.
An identity matrix of dimension d.
The n x G matrix of mixing proportions.
The cluster membership vector.
Isobel Claire Gormley and Thomas Brendan Murphy. (2010) A Mixture of Experts Latent Position Cluster Model for Social Network Data. Statistical Methodology, 7 (3), pp.385-405.