Skip to main content
. 2007 Dec 19;8:482. doi: 10.1186/1471-2105-8-482

Table 7.

Algorithm: Mean field annealing
\SetKwInOut{Input}{Input}
\SetKwInOut{Output}{Output}
\Input{A set of observations (tij, sij) for each pair (i, j), ψ, a number of clusters K}
\Output{A probability qik for a node i belonging to a cluster k for all i and for all k}
Initialize q to random values;
Initialize annealing factor γ;
Whileγ <γmax Repeatq converges
ForAlli V
ForAllk K
Cik=jNeighbor(i)qjk(tijsij)+(1qjk)ψsij MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGacaGaaiaabeqaaeqabiWaaaGcbaGaem4qam0aaSbaaSqaaiabdMgaPjabdUgaRbqabaGccqGH9aqpdaaeqbqaaiabdghaXnaaBaaaleaacqWGQbGAcqWGRbWAaeqaaOGaeiikaGIaemiDaq3aaSbaaSqaaiabdMgaPjabdQgaQbqabaGccqGHsislcqWGZbWCdaWgaaWcbaGaemyAaKMaemOAaOgabeaakiabcMcaPiabgUcaRiabcIcaOiabigdaXiabgkHiTiabdghaXnaaBaaaleaacqWGQbGAcqWGRbWAaeqaaOGaeiykaKccciGae8hYdKNaem4Cam3aaSbaaSqaaiabdMgaPjabdQgaQbqabaaabaGaemOAaOMaeyicI4SaemOta4KaemyzauMaemyAaKMaem4zaCMaemiAaGMaemOyaiMaem4Ba8MaemOCaiNaeiikaGIaemyAaKMaeiykaKcabeqdcqGHris5aaaa@6230@
ForAllk K
q^ik=exp(γCik)l=1Kexp(γCil) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGacaGaaiaabeqaaeqabiWaaaGcbaGafmyCaeNbaKaadaWgaaWcbaGaemyAaKMaem4AaSgabeaakiabg2da9KqbaoaalaaabaGagiyzauMaeiiEaGNaeiiCaaNaeiikaGIaeyOeI0ccciGae83SdCMaem4qam0aaSbaaeaacqWGPbqAcqWGRbWAaeqaaiabcMcaPaqaamaaqahabaGagiyzauMaeiiEaGNaeiiCaaNaeiikaGIaeyOeI0Iae83SdCMaem4qam0aaSbaaeaacqWGPbqAcqWGSbaBaeqaaiabcMcaPaqaaiabdYgaSjabg2da9iabigdaXaqaaiabdUealbGaeyyeIuoaaaaaaa@514E@
ForAllk K
qik = q^ik MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacPC6xNi=xH8viVGI8Gi=hEeeu0xXdbba9frFj0xb9qqpG0dXdb9aspeI8k8fiI+fsY=rqGqVepae9pg0db9vqaiVgFr0xfr=xfr=xc9adbaqaaeGacaGaaiaabeqaaeqabiWaaaGcbaGafmyCaeNbaKaadaWgaaWcbaGaemyAaKMaem4AaSgabeaaaaa@3034@
Increase γ;