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