Daniel@0: function [pot, loglik] = normalize_pot(pot) Daniel@0: % NORMALIZE_POT Convert the moment potential Pr(X,E) into Pr(X|E) and return log Pr(E). Daniel@0: % [pot, loglik] = normalize_pot(pot) Daniel@0: Daniel@0: loglik = pot.logp; Daniel@0: pot.logp = 0;