⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 max_propagate_messages.m

📁 The BNL toolbox is a set of Matlab functions for defining and estimating the parameters of a Bayesi
💻 M
字号:
function [septable,cliquetable,schaal]=max_propagate_messages(order,septable, cliquetable)
numb_clqs=length(order);
a=size(cliquetable.pots{1});
N=a(end);
schaal=0;
for i=1:numb_clqs
    e=order(i);
    for j=i+1:numb_clqs
        k=order(j);
        if ~isempty(septable.ind{e,k})
            %marginalize  
            
            septable.old_pots{e,k}=septable.pots{e,k};
            septable.pots{e,k}=franks_max_marginalize_pot(cliquetable.pots{e},septable.proj{e,k},septable.dim{e,k});
            septable.pots{k,e}=septable.pots{e,k};
            %absorb
            lambda=pot_division(septable.pots{e,k},septable.old_pots{e,k});
            cliquetable.pots{k}=cliquetable.pots{k}.*replicate_pot(lambda,septable.abs{e,k},cliquetable.dim{k});
            
            %normalize cliques
            [cliquetable.pots{k},sch]=franksnormalize(cliquetable.pots{k},N,1);
            schaal=schaal+sch;
        end
    end
end

⌨️ 快捷键说明

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