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

📄 select_max_config.m

📁 The BNL toolbox is a set of Matlab functions for defining and estimating the parameters of a Bayesi
💻 M
字号:
function [cliquetable,septable]=select_max_config(cliquetable,septable)

numb_clqs=length(cliquetable.pots);
for i=1:numb_clqs
    siz=cliquetable.dim{i};
    table=reshape(cliquetable.pots{i},prod(siz(1:end-1)),siz(end));
    m=max(table);
    maxtable=repmat(m, prod(siz(1:end-1)),1);
    a=(table==maxtable);
    cliquetable.pots{i}(:)=reshape(a,siz);;
    
end
%put potentials of separators to 1
a= find(~isemptycell(septable.pots));
for i=a'
    septable.pots{i}(:)=1;
end

⌨️ 快捷键说明

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