wolffd@0: function e = dempot(x, mix) wolffd@0: %DEMPOT Computes the negative log likelihood for a mixture model. wolffd@0: % wolffd@0: % Description wolffd@0: % This function computes the negative log of the unconditional data wolffd@0: % density P(X) for a Gaussian mixture model. The data structure MIX wolffd@0: % defines the mixture model, while the matrix X contains the data wolffd@0: % vectors. wolffd@0: % wolffd@0: % See also wolffd@0: % DEMGPOT, DEMHMC1, DEMMET1 wolffd@0: % wolffd@0: wolffd@0: % Copyright (c) Ian T Nabney (1996-2001) wolffd@0: wolffd@0: % Computes the potential (negative log likelihood) wolffd@0: e = -log(gmmprob(mix, x));