setPURPOSESet method for Gaussian mixtures.
SYNOPSISfunction gm=set(gm,field,value)
DESCRIPTIONSet 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 INFORMATIONThis function calls:
SOURCE CODE0001 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 |