mtimesPURPOSEProduct of a GMixture and a constant/GMixture.
SYNOPSISfunction gm=mtimes(gm1,gm2)
DESCRIPTIONProduct of a GMixture and a constant/GMixture. Returns the Gaussian mixutre resulting from multiplying the two input parameters. Those can be two Gaussian mixtures or a Gaussian mixture and double. In this second case the weigths of the mixture get scaled. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function gm=mtimes(gm1,gm2) 0002 % Product of a GMixture and a constant/GMixture. 0003 % 0004 % Returns the Gaussian mixutre resulting from multiplying the two input 0005 % parameters. Those can be two Gaussian mixtures or a Gaussian mixture 0006 % and double. In this second case the weigths of the mixture get scaled. 0007 if isa(gm1,'GMixture') 0008 if isa(gm2,'GMixture') 0009 gm=Product(gm1,gm2); 0010 else 0011 if isa(gm2,'double') 0012 gm=gm1; 0013 gm.w=gm2*gm.w; 0014 else 0015 error('Invalid parameter type in Gaussian mtimes') 0016 end 0017 end 0018 else 0019 gm=mtimes(gm2,gm1); 0020 end 0021 |