about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/potentials/@scgcpot/normalize_pot.m
blob: 8900c66e5772074dba783b7bac095940fcb1d249 (plain)
1
2
3
4
5
6
function [pot, loglik] = normalize_pot(pot)
% NORMALIZE_POT Convert the element of stable conditional gaussian potential Pr(X,E) into Pr(X|E) and return log Pr(E).
% [pot, loglik] = normalize_pot(pot)

loglik = log(pot.p);
pot.p = 1;