comparison toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/HHMM/Square/is_F2_true_D3.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function stop = is_F2_true_D3(vals)
2 % function stop = is_F2_true_D3(vals)
3 %
4 % If vals(F2)=2 then level 2 has finished, so we return stop=1
5 % to stop sample_dbn. Otherwise we return stop=0.
6 % We assume this is for a D=3 level HHMM.
7
8 Q1 = 1; Q2 = 2; Q3 = 3; F3 = 4; F2 = 5; Onode = 6;
9 stop = 0;
10 if (iscell(vals) & vals{F2}==2) | (~iscell(vals) & vals(F2)==2)
11 stop = 1;
12 end