1 function[phiInit,rhoInit,piInit,gamInit] = basicInitParameters(n,p,m,k)
3 phiInit = zeros(p,m,k);
5 piInit = (1.0/k) * ones(1,k);
7 rhoInit = zeros(m,m,k);
9 rhoInit(:,:,r) = eye(m,m);
12 gamInit = 0.1 * ones(n,k);
13 R = random('unid',k,n,1);
15 gamInit(i,R(i)) = 0.9;
17 gamInit = gamInit / (sum(gamInit(1,:)));