Institut de Robòtica i Informàtica Industrial

plus

PURPOSE ^

Adds two GMixtures.

SYNOPSIS ^

function gmOut=plus(gm1,gm2)

DESCRIPTION ^

   Adds two GMixtures.

   Returns the Gaussian mixture resulting from adding the two input
   mixtures.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • minus Substract a Gauussian and a constant/Gaussian.
  • plus Adds a Gaussian and a constant/Gaussian.

SOURCE CODE ^

0001 function gmOut=plus(gm1,gm2) 
0002 %   Adds two GMixtures.
0003 %
0004 %   Returns the Gaussian mixture resulting from adding the two input
0005 %   mixtures.
0006 
0007   gmOut.w=[gm1.w gm2.w];
0008   gmOut.g=[gm1.g gm2.g];
0009   gmOut.n=gm1.n+gm2.n;
0010   gmOut=class(gmOut,'GMixture');
0011


Institut de Robòtica i Informàtica Industrial

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