GetFirstComponentsPURPOSEGets the first components of a GMixture.
SYNOPSISfunction gmOut=GetFirstComponents(gm,m)
DESCRIPTIONGets the first components of a GMixture. Returns a Gaussian mixture formed by the 'm' first elements of the input mixture. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function gmOut=GetFirstComponents(gm,m) 0002 % Gets the first components of a GMixture. 0003 % 0004 % Returns a Gaussian mixture formed by the 'm' first elements of the 0005 % input mixture. 0006 0007 if gm.n>m 0008 nw=gm.w(1:m); 0009 gmOut=GMixture(nw/sum(nw),gm.g(1:m)); 0010 else 0011 gmOut=gm; 0012 end |