Institut de Robòtica i Informàtica Industrial

set

PURPOSE ^

Set method for Gaussian mixtures.

SYNOPSIS ^

function gm=set(gm,field,value)

DESCRIPTION ^

  Set method for Gaussian mixtures.

  Set function for Gaussian mixtures.
  Possible fields to set:
    - w Changes the vector of weigths for the mixture components.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • size Returns the size of a policy.
This function is called by:

SOURCE CODE ^

0001 function gm=set(gm,field,value)
0002 %  Set method for Gaussian mixtures.
0003 %
0004 %  Set function for Gaussian mixtures.
0005 %  Possible fields to set:
0006 %    - w Changes the vector of weigths for the mixture components.
0007   switch field
0008     case 'w'
0009       if size(value,1)==1 && size(value,2)==gm.n
0010         gm.w=value;
0011       else
0012         error('Missmatch size in GMixture set');
0013       end
0014     otherwise
0015       error('Unknown field in GMixture set');
0016   end


Institut de Robòtica i Informàtica Industrial

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