Mercurial > hg > camir-aes2014
annotate toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/filter_test1.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 % Compare online filtering algorithms on some DBNs |
wolffd@0 | 2 |
wolffd@0 | 3 seed = 0; |
wolffd@0 | 4 rand('state', seed); |
wolffd@0 | 5 randn('state', seed); |
wolffd@0 | 6 |
wolffd@0 | 7 if 0 |
wolffd@0 | 8 N = 3; |
wolffd@0 | 9 Q = 2; |
wolffd@0 | 10 obs_size = 1; |
wolffd@0 | 11 discrete_obs = 0; |
wolffd@0 | 12 bnet = mk_chmm(N, Q, obs_size, discrete_obs); |
wolffd@0 | 13 else |
wolffd@0 | 14 %bnet = mk_bat_dbn; |
wolffd@0 | 15 bnet = mk_water_dbn; |
wolffd@0 | 16 end |
wolffd@0 | 17 |
wolffd@0 | 18 T = 3; |
wolffd@0 | 19 |
wolffd@0 | 20 engine = {}; |
wolffd@0 | 21 engine{end+1} = filter_engine(hmm_2TBN_inf_engine(bnet)); |
wolffd@0 | 22 engine{end+1} = filter_engine(jtree_2TBN_inf_engine(bnet)); |
wolffd@0 | 23 |
wolffd@0 | 24 time = cmp_online_inference(bnet, engine, T); |