marginal_nodes.m

来自「麻省理工学院的人工智能工具箱,很珍贵,希望对大家有用!」· M 代码 · 共 17 行

M
17
字号
function marginal = marginal_nodes(engine, query)% MARGINAL_NODES Compute the marginal on the specified query nodes (jtree)% marginal = marginal_nodes(engine, query)%% 'query' must be a subset of some clique; an error will be raised if not.if length(query)==1  marginal.T = engine.node_marginals{query};  marginal.domain = query;else  c = clq_containing_nodes(engine, query);  if c < 0    error(['no clique containing query ' query]);  end  marginal = pot_to_marginal(marginalize_pot(engine.clpot{c}, query, engine.maximize));  end

⌨️ 快捷键说明

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