marginal_nodes.m
来自「bayes net tool how to use the bayes net」· M 代码 · 共 15 行
M
15 行
function [marginal, pot] = marginal_nodes(engine, query)% MARGINAL_NODES Compute the marginal on the specified query nodes (belprop)% [marginal, pot] = marginal_nodes(engine, query)%% query must be a subset of a familyif isempty(query) big_pot = engine.marginal_domains{1}; % pick an arbitrary domainelse big_pot = engine.marginal_domains{query(end)}; endpot = marginalize_pot(big_pot, query);marginal = pot_to_marginal(pot);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?