Institut de Robòtica i Informàtica Industrial

Normalize

PURPOSE ^

Normalize a GMixture.

SYNOPSIS ^

function gmC=Normalize(gm)

DESCRIPTION ^

   Normalize a GMixture.

   Normalize the weights of a Gaussian mixture. All weights are converted
   to possitive in the range [0,1] and their sum is set to 1.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function gmC=Normalize(gm)
0002 %   Normalize a GMixture.
0003 %
0004 %   Normalize the weights of a Gaussian mixture. All weights are converted
0005 %   to possitive in the range [0,1] and their sum is set to 1.
0006   w=abs(gm.w);
0007   gmC=GMixture(w/sum(w),gm.g);
0008


Institut de Robòtica i Informàtica Industrial

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