A Gibbs step to update variances in each cluster.
updatesigma2(G, alpha, m, d, sigma02, z, K, mu, sigma2)
The number of clusters being fitted.
Degrees of freedom of the scaled inverse Chi squared prior distribution on the cluster variances.
Vector of length G containing the number of nodes in each cluster.
Dimension of the latent space.
Scaled factor of the scaled inverse Chi squared prior distribution on the cluster variances.
The n x d matrix of latent locations.
The cluster membership vector.
The G x d matrix of cluster means.
The G vector of cluster variances.
The G vector of cluster variances.
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.