diff options
Diffstat (limited to 'sourcecodes/bnt-master/BNT/potentials/@mpot/normalize_pot.m')
| -rw-r--r-- | sourcecodes/bnt-master/BNT/potentials/@mpot/normalize_pot.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/BNT/potentials/@mpot/normalize_pot.m b/sourcecodes/bnt-master/BNT/potentials/@mpot/normalize_pot.m new file mode 100644 index 00000000..a9c2e935 --- /dev/null +++ b/sourcecodes/bnt-master/BNT/potentials/@mpot/normalize_pot.m @@ -0,0 +1,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; |
