Institut de Robòtica i Informàtica Industrial

Mean

PURPOSE ^

Mean of a Gmixture.

SYNOPSIS ^

function m=Mean(gm)

DESCRIPTION ^

   Mean of a Gmixture.

   Returns the weighted average of the mean of the components in the
   input Gaussian mixture.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • get Get for GBeliefs.
  • get Get function for the GMixture object.
  • get Gaussian object get function.
  • get Get function for CS_CO_CA_POMDPs.
  • get Get function for CS_CO_DA_POMDPs.
  • get Get function for CS_CO_POMDPs.
  • get Get function for CS_DO_CA_POMDPs.
  • get Get function for CS_DO_DA_POMDPs.
  • get Get function for CS_POMDPs.
  • get Get function for DS_CO_CA_POMDPs.
  • get Get function for DS_CO_DA_POMDPs.
  • get Get function for DS_DO_CA_POMDPs.
  • get Get function for DS_DO_DA_POMDPs.
  • get Get functio for POMDPs.
This function is called by:

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


Institut de Robòtica i Informàtica Industrial

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