A Gibbs step to update the mean of each cluster.
updatemu(G, z, K, m, sigma2, omega2, Id, mu, d)
The number of clusters being fitted.
The n x d matrix of latent locations.
The cluster membership vector.
Vector of length G containing the number of nodes in each cluster.
The covariance of each cluster.
Covariance of the multivariate normal prior distribution on the means. Note this is a scalar value, as the prior covariance is diagonal.
A d x d identity matrix.
The G x d matrix of cluster means.
The dimension of the latent space.
The G x d matrix of cluster means.
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.