?? dbn_to_lds.m
字號:
function [trans_mat, trans_cov, obs_mat, obs_cov, init_state, init_cov] = dbn_to_lds(bnet)% DBN_TO_LDS Compute the Linear Dynamical System parameters from the Gaussian DBN.% [trans_mat, trans_cov, obs_mat, obs_cov, init_state, init_cov] = dbn_to_lds(bnet)onodes = bnet.observed;ss = length(bnet.intra);num_nodes = ss*2;assert(isequal(bnet.cnodes_slice, 1:ss));[W,D,mu] = extract_params_from_gbn(bnet);hnodes = mysetdiff(1:ss, onodes);bs = bnet.node_sizes(:); % block sizesobs_mat = W(block(hnodes,bs), block(onodes,bs))';u = block(onodes,bs);obs_cov = D(u,u);trans_mat = W(block(hnodes,bs), block(hnodes + ss, bs))';u = block(hnodes + ss, bs);trans_cov = D(u,u);u = block(hnodes,bs);init_cov = D(u,u);init_state = mu(u);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -