Institut de Robòtica i Informàtica Industrial

mtimes

PURPOSE ^

Product of a GMixture and a constant/GMixture.

SYNOPSIS ^

function gm=mtimes(gm1,gm2)

DESCRIPTION ^

   Product 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 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 %   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


Institut de Robòtica i Informàtica Industrial

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