ProductPURPOSEgmOut=Product(gm1,gm2)
SYNOPSISfunction gmOut=Product(gm1,gm2)
DESCRIPTIONgmOut=Product(gm1,gm2) Returns the Gaussian mixutre resulting from multiplying the two input mixtures. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function gmOut=Product(gm1,gm2) 0002 % gmOut=Product(gm1,gm2) 0003 % Returns the Gaussian mixutre resulting from multiplying the two input 0004 % mixtures. 0005 0006 n=gm1.n*gm2.n; 0007 w=zeros(1,n); 0008 g=cell(1,n); 0009 k=1; 0010 0011 for i=1:gm1.n 0012 for j=1:gm2.n 0013 [g{k} d]=Product(gm1.g{i},gm2.g{j}); 0014 w(k)=gm1.w(i)*gm2.w(j)*d; 0015 k=k+1; 0016 end 0017 end 0018 gmOut=GMixture(w,g); |