wolffd@0: function p = gmmpak(mix) wolffd@0: %GMMPAK Combines all the parameters in a Gaussian mixture model into one vector. wolffd@0: % wolffd@0: % Description wolffd@0: % P = GMMPAK(NET) takes a mixture data structure MIX and combines the wolffd@0: % component parameter matrices into a single row vector P. wolffd@0: % wolffd@0: % See also wolffd@0: % GMM, GMMUNPAK wolffd@0: % wolffd@0: wolffd@0: % Copyright (c) Ian T Nabney (1996-2001) wolffd@0: wolffd@0: errstring = consist(mix, 'gmm'); wolffd@0: if ~errstring wolffd@0: error(errstring); wolffd@0: end wolffd@0: wolffd@0: p = [mix.priors, mix.centres(:)', mix.covars(:)']; wolffd@0: if strcmp(mix.covar_type, 'ppca') wolffd@0: p = [p, mix.lambda(:)', mix.U(:)']; wolffd@0: end