To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / _FullBNT / BNT / CPDs / @hhmmQ_CPD / Old / log_prior.m @ 8:b5b38998ef3b

History | View | Annotate | Download (207 Bytes)

1
function L = log_prior(CPD)
2
% LOG_PRIOR Return log P(theta) for a hhmm CPD 
3
% L = log_prior(CPD)
4

    
5
L = log_prior(CPD.sub_CPD_trans);
6
if ~isempty(CPD.sub_CPD_start)
7
  L = L + log_prior(CPD.sub_CPD_start);
8
end