📄 mcmclt.m
字号:
% MCMLT - makes matrix of MCMC runs lower triangular% Copyright (c) 1998, Harvard University. Full copyright in the file Copyright%% [ Alt ] = MCMCLT(A)%% A = a chain of matricies, typically covariances%% Alt = A with all elements above the diagonal changed to NaNs%% Good for removing redundant trace plots and values,% especially for samples of covariance matricies.% % MCMCTRACE will not plot chains that begin with NaNs.%% See also: LTVEC, VECLTfunction [Alt] = mcmclt(A) dd = size(A) ;ll = length(dd) ;d1 = dd(1) ;d2 = dd(2) ;if (ll==2), Alt = A ; for i1 = 1:d1, for i2 = 1:d2, if i2>i1, Alt(i1,i2)=NaN ; end end endelse Alt = A ; for i1 = 1:d1, for i2 = 1:d2, if i2>i1, Alt(i1,i2,:)=NaN ; end end endend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -