Mercurial > hg > mauch-mirex-2010
annotate _FullBNT/BNT/inference/dynamic/@cbk_inf_engine/update_engine.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function engine = update_engine(engine, newCPDs) |
matthiasm@8 | 2 % UPDATE_ENGINE Update the engine to take into account the new parameters (bk) |
matthiasm@8 | 3 % engine = update_engine(engine, newCPDs) |
matthiasm@8 | 4 |
matthiasm@8 | 5 engine.inf_engine = update_engine(engine.inf_engine, newCPDs); |
matthiasm@8 | 6 engine.sub_engine = update_engine(engine.sub_engine, newCPDs); |
matthiasm@8 | 7 |
matthiasm@8 | 8 bnet = bnet_from_engine(engine); |
matthiasm@8 | 9 eclass1 = bnet.equiv_class(:,1); |
matthiasm@8 | 10 engine.sub_engine1 = update_engine(engine.sub_engine1, newCPDs(1:max(eclass1))); |
matthiasm@8 | 11 |