![]() |
AddComponentPURPOSE
Adds a component to the a Gaussian mixture
SYNOPSIS
function gm=AddComponent(gm,w,g)
DESCRIPTION
Adds a component to the a Gaussian mixture Adds a component to the a Gaussian mixture Parameters gm: The mixture to update. w: The weight for the new component. g: The Gaussian for the new component. Output gm: The updated mixture. See also GMixture. CROSS-REFERENCE INFORMATION
This function calls:
SOURCE CODE
0001 function gm=AddComponent(gm,w,g) 0002 % Adds a component to the a Gaussian mixture 0003 % 0004 % Adds a component to the a Gaussian mixture 0005 % Parameters 0006 % gm: The mixture to update. 0007 % w: The weight for the new component. 0008 % g: The Gaussian for the new component. 0009 % Output 0010 % gm: The updated mixture. 0011 % 0012 % See also GMixture. 0013 0014 gm.w=[gm.w w]; 0015 gm.g=[gm.g g]; 0016 gm.n=gm.n+1; |