combine_marginals_into_joint.m

来自「贝叶斯网络的matlab实现。可以创建贝叶斯网络、训练模型」· M 代码 · 共 9 行

M
9
字号
function joint = combine_marginals_into_joint(marginalsT, hnodes, ns)

jointT = dpot(hnodes, ns(hnodes));
for i=hnodes(:)'
  jointT = multiply_by_pot(jointT, marginalsT{i});
end
m = pot_to_marginal(jointT);
joint = m.T(:);           

⌨️ 快捷键说明

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