Institut de Robòtica i Informàtica Industrial

Product

PURPOSE ^

gmOut=Product(gm1,gm2)

SYNOPSIS ^

function gmOut=Product(gm1,gm2)

DESCRIPTION ^

 gmOut=Product(gm1,gm2)
   Returns the Gaussian mixutre resulting from multiplying the two input
   mixtures.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
  • Product gmOut=Product(gm1,gm2)
  • mtimes Product of a GMixture and a constant/GMixture.
  • mtimes Product of a Gaussian and a constant/Gaussian.

SOURCE CODE ^

0001 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);


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003