Mercurial > hg > camir-aes2014
annotate 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 |
rev | line source |
---|---|
wolffd@0 | 1 function stop = is_F2_true_D3(vals) |
wolffd@0 | 2 % function stop = is_F2_true_D3(vals) |
wolffd@0 | 3 % |
wolffd@0 | 4 % If vals(F2)=2 then level 2 has finished, so we return stop=1 |
wolffd@0 | 5 % to stop sample_dbn. Otherwise we return stop=0. |
wolffd@0 | 6 % We assume this is for a D=3 level HHMM. |
wolffd@0 | 7 |
wolffd@0 | 8 Q1 = 1; Q2 = 2; Q3 = 3; F3 = 4; F2 = 5; Onode = 6; |
wolffd@0 | 9 stop = 0; |
wolffd@0 | 10 if (iscell(vals) & vals{F2}==2) | (~iscell(vals) & vals(F2)==2) |
wolffd@0 | 11 stop = 1; |
wolffd@0 | 12 end |