marginal_nodes.m
来自「bayes net tool how to use the bayes net」· M 代码 · 共 18 行
M
18 行
function [m, pot] = marginal_nodes(engine, query)% MARGINAL_NODES Compute the marginal on the specified nodes (jtree_limid)% [m, pot] = marginal_nodes(engine, query)%% query should be a subset of a family of a decision nodeif isempty(query) bnet = bnet_from_engine(engine); d = bnet.decision_nodes(1); % pick an arbitrary decision node [dummy, big_pot] = marginal_family(engine, d); else [dummy, big_pot] = marginal_family(engine, query);endpot = marginalize_pot(big_pot, query);m = pot_to_marginal(pot);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?