link_covariates_to_nodes_hier_hmm_timesq.m
来自「The BNL toolbox is a set of Matlab funct」· M 代码 · 共 16 行
M
16 行
function cov_nodes=link_covariates_to_nodes_hier_hmm_timesq(equiv_class,covariates_names,onames,B,D)
%specifies which covariates belong to which equivalence class of nodes
j=1;
for i=1:B*D
if mod(i,B)~=1
f1=eval(['strmatch(''Xsignal_',int2str(i),''',onames)']);
f2=eval(['strmatch(''time_',int2str(i),''',covariates_names)']);
f3=eval(['strmatch(''timesq_',int2str(i),''',covariates_names)']);
cov_nodes{j,1}=equiv_class(f1(1));
cov_nodes{j,2}=[f2(1) f3(1)];
j=j+1;
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?