Institut de Robòtica i Informàtica Industrial

get

PURPOSE ^

Get function for the GMixture object.

SYNOPSIS ^

function value=get(gm,field,varargin)

DESCRIPTION ^

   Get function for the GMixture object.

   Get for the GMixture object
   Possible fields
     'n' Number of components in the mixture.
     'w' The vector of weigths of the components in the mixture.
     'minW' Minimum weights for all components in the mixture.
     'components' Array of Gaussians, one for each component.
     'component' Returns the Gaussian for a particular component.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • min Lower bound of a CSpace
This function is called by:

SOURCE CODE ^

0001 function value=get(gm,field,varargin)
0002 %   Get function for the GMixture object.
0003 %
0004 %   Get for the GMixture object
0005 %   Possible fields
0006 %     'n' Number of components in the mixture.
0007 %     'w' The vector of weigths of the components in the mixture.
0008 %     'minW' Minimum weights for all components in the mixture.
0009 %     'components' Array of Gaussians, one for each component.
0010 %     'component' Returns the Gaussian for a particular component.
0011 
0012   switch field
0013     case 'n'
0014       value=gm.n;
0015     case 'w'
0016       value=gm.w;
0017     case 'minW'
0018       value=min(gm.w);
0019     case 'components'
0020       value=gm.g;
0021     case 'component'
0022       value=gm.g{varargin{1}};
0023     otherwise
0024       error('Unknown field in GMixture get');
0025   end


Institut de Robòtica i Informàtica Industrial

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