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

📄 plotstats.m.txt

📁 这是马尔可夫-蒙特卡罗算法的MATLAB源程序.
💻 TXT
字号:
function PlotStats(llvec,lpvec,tlP,tlL,count,countmax)
%
% plot the log Likelihood and log Prior

%lag = 1000; % final plot
lag=50; % real-time display

figure(2),subplot(2,1,2)
plot(1:count,lpvec(1:count),'b',[0 countmax],[tlP tlP],'r:'), ylabel('log Prior')
axis([1 countmax min([lpvec(max(1,count-lag):count) tlP])-10 max([lpvec(max(1,count-lag):count) tlP])+10])

figure(2),subplot(2,1,1)
plot(1:count,llvec(1:count),'b',[0 countmax],[tlL tlL],'r:'), ylabel('log Likelihood')
axis([1 countmax min([llvec(max(1,count-lag):count) tlL])-10 max([llvec(max(1,count-lag):count) tlL])+10])

drawnow

⌨️ 快捷键说明

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