⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fwd1.m

📁 贝叶斯算法(matlab编写) 安装,添加目录 /home/ai2/murphyk/matlab/FullBNT
💻 M
字号:
function [f, logscale] = fwd1(engine, ev, t)% Forwards pass for slice 1.bnet = bnet_from_engine(engine);ss = bnet.nnodes_per_slice;CPDpot = cell(1,ss);for n=1:ss  fam = family(bnet.dag, n, 1);  e = bnet.equiv_class(n, 1);  CPDpot{n} = convert_to_pot(bnet.CPD{e}, engine.pot_type, fam(:), ev);end       f.t = t;f.evidence = ev;pots = CPDpot;slice1 = 1:ss;CPDclqs = engine.clq_ass_to_node1(slice1);[f.clpot, f.seppot] =  init_pot(engine.jtree_engine1, CPDclqs, CPDpot, engine.pot_type, engine.observed1);[f.clpot, f.seppot] = collect_evidence(engine.jtree_engine1, f.clpot, f.seppot);for c=1:length(f.clpot)  [f.clpot{c}, ll(c)] = normalize_pot(f.clpot{c});endlogscale = ll(engine.root1);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -