blob: a9c2e93519c133ff02a6a92f3de6f1c50accf06e (
plain)
1
2
3
4
5
6
|
function [pot, loglik] = normalize_pot(pot)
% NORMALIZE_POT Convert the moment potential Pr(X,E) into Pr(X|E) and return log Pr(E).
% [pot, loglik] = normalize_pot(pot)
loglik = pot.logp;
pot.logp = 0;
|