Skip to main content
. 2021 Sep 28;23(10):1268. doi: 10.3390/e23101268
        Algorithm 1: Initialization
SetL = 1, αl = 0, rnk=0, I =Ø;xlzfor l = 1L0Initialize q(θl) from (25)Initialize q(wl) from (23)Initialize q(αl) from (26) and (27)x^lnynl=1Lw^lns(θ^l)I=IlL=L+1end for//remove duplicate estimatesfor lIif d,θd=θlwl=wl+wdI=IdL=L1end ifend//initialize GMM parametersfor lIinitialize μl0, Λl0 from wl by K-means algorithmestimate μl, Λl, p(clnk=1|wln) by EM algorithmrlnk=p(clnk=1|wln)end