link_pot_to_cpt.m
来自「The BNL toolbox is a set of Matlab funct」· M 代码 · 共 15 行
M
15 行
function pot_to_CPT=link_pot_to_CPT(cliquetable,clq_ass_to_node,par)
%returns, for all conditional probability tables, the number of the clique from which it will be obtained
%, and the dimension nr of the clique to marginalyze over
nr_nodes=length(par);
pot_to_CPT.proj=cell(nr_nodes,1);%dimension nr of the nodes to sum over
pot_to_CPT.ind=clq_ass_to_node; %nr of clique to which node is assigned
for i=1:nr_nodes
set=[par{i} i]; %i and its parents
map=mysetdiff(cliquetable.ind{pot_to_CPT.ind(i)},set); %identify nodes in the same clique but not part of 'set'
pot_to_CPT.proj{i}=find_equiv_posns(map,cliquetable.ind{pot_to_CPT.ind(i)});%find position nr of these nodes
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?