pot_to_marginal.m

来自「贝叶斯网络的matlab实现。可以创建贝叶斯网络、训练模型」· M 代码 · 共 14 行

M
14
字号
function m = pot_to_marginal(pot)
% POT_TO_MARGINAL Convert a mpot to a marginal structure.
% m = pot_to_marginal(pot)

m.domain = pot.domain;
m.T = exp(pot.logp);
m.mu = pot.mu;
m.Sigma = pot.Sigma;

if isvector(m.T)
  m.T = m.T(:)';
end

⌨️ 快捷键说明

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