compute_jpts.m

来自「The BNL toolbox is a set of Matlab funct」· M 代码 · 共 15 行

M
15
字号
function joint_prob_tabs=compute_JPTs(cliquetable,pot_to_CPT,parents,node_sizes,N)
%computes all joint probability tables, used for computing CPTs
k=length(pot_to_CPT.ind);
joint_prob_tabs=cell(k,1);

for i=1:k
    table=cliquetable.pots{pot_to_CPT.ind(i)};
    over=pot_to_CPT.proj{i};
    dims=[node_sizes(parents{i}) node_sizes(i) N];
    if ~isempty(over), joint_prob_tabs{i}=franks_marginalize_pot(table,over,dims);
    else joint_prob_tabs{i}=table;
    end
end

⌨️ 快捷键说明

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