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

📄 gaussian_inf_engine.m

📁 贝叶斯算法(matlab编写) 安装,添加目录 /home/ai2/murphyk/matlab/FullBNT
💻 M
字号:
function engine = gaussian_inf_engine(bnet)% GAUSSIAN_INF_ENGINE Computes the joint multivariate Gaussian corresponding to the bnet% engine = gaussian_inf_engine(bnet)%% For details on how to compute the joint Gaussian from the bnet, see% - "Gaussian Influence Diagrams", R. Shachter and C. R. Kenley, Management Science, 35(5):527--550, 1989.% Once we have the Gaussian, we can apply the standard formulas for conditioning and marginalization.assert(isequal(bnet.cnodes, 1:length(bnet.dag)));[W, D, mu] = extract_params_from_gbn(bnet);U = inv(eye(size(W)) - W')';Sigma = U' * D * U;engine.mu = mu;engine.Sigma = Sigma;%engine.logp = log(normal_coef(Sigma));% This is where we will store the results between enter_evidence and marginal_nodes  engine.Hmu = [];engine.HSigma = [];engine.hnodes = [];engine = class(engine, 'gaussian_inf_engine', inf_engine(bnet));

⌨️ 快捷键说明

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