mtimes
PURPOSE 
Product of a GMixture and a constant/GMixture.
SYNOPSIS 
function gm=mtimes(gm1,gm2)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
- Product gmOut=Product(gm1,gm2)
- mtimes Product of a GMixture and a constant/GMixture.
- Product Product of two Gaussians.
- mtimes Product of a Gaussian and a constant/Gaussian.
This function is called by:
- mtimes Product of a GMixture and a constant/GMixture.
- mtimes Product of a Gaussian and a constant/Gaussian.
SOURCE CODE 
0001 function gm=mtimes(gm1,gm2)
0002
0003
0004
0005
0006
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
|