FuseComponents Fuses a Gaussian mixture into a single Gaussian.
SOURCE CODE
0001 function m=Mean(gm)
0002 % Mean of a Gmixture.
0003 %
0004 % Returns the weighted average of the mean of the components in the
0005 % input Gaussian mixture.
0006
0007 if gm.n>0
0008 m=gm.w(1)*get(gm.g{1},'mean');
0009 for i=2:gm.n
0010 m=m+gm.w(i)*get(gm.g{i},'mean');
0011 end
0012 else
0013 m=0;
0014 end
0015