Detecting interaction lags demo: adjusting plotting code, and including sample result plots

This commit is contained in:
joseph.lizier 2014-08-07 02:23:33 +00:00
parent 22883aa575
commit 891fbef4e5
3 changed files with 18 additions and 18 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -147,15 +147,6 @@ function transferWithSourceMemory(savePlot)
hold off;
% Make figures ok for plotting:
legend('location', 'east');
if (savePlot)
xlabel('\eta', 'fontsize', 32);
ylabel('Information (bits)', 'fontsize', 32);
print('te.eps', '-deps', '-color');
else
% do these without fontsize to have more stable displays in octave
xlabel('\eta');
ylabel('Information (bits)');
end
else
% We're on Matlab - just make a quick plot
plot(deltas, teXnToYnplus1, 'rx', 'markersize', markersize); % Empirical: TE_{SPO}(X \rightarrow Y, 1);
@ -169,6 +160,15 @@ function transferWithSourceMemory(savePlot)
'Empirical: TE_{SPO}(X \rightarrow y, 2)', 'Analytic: TE_{SPO}(X \rightarrow Y, 2)', ...
'Location', 'East');
end
if (savePlot)
xlabel('\eta', 'fontsize', 32);
ylabel('Information (bits)', 'fontsize', 32);
print('te.eps', '-depsc');
else
% do these without fontsize to have more stable displays in octave
xlabel('\eta');
ylabel('Information (bits)');
end
% Plot the MIT's
figure;
@ -185,15 +185,6 @@ function transferWithSourceMemory(savePlot)
hold off;
% Make figures ok for plotting:
legend('location', 'east')
if (savePlot)
xlabel('\eta', 'fontsize', 32);
ylabel('Information (bits)', 'fontsize', 32);
print('mit.eps', '-deps', '-color');
else
% do these without fontsize to have more stable displays in octave
xlabel('\eta');
ylabel('Information (bits)');
end
else
% We're on Matlab - just make a quick plot
plot(deltas, mitXnToYnplus1, 'rx', 'markersize', markersize); % Empirical: MIT(X \rightarrow Y, 1)
@ -207,6 +198,15 @@ function transferWithSourceMemory(savePlot)
'Empirical: MIT(X \rightarrow Y, 2)', 'Analytic: MIT(X \rightarrow Y, 2)', ...
'Location', 'East');
end
if (savePlot)
xlabel('\eta', 'fontsize', 32);
ylabel('Information (bits)', 'fontsize', 32);
print('mit.eps', '-depsc');
else
% do these without fontsize to have more stable displays in octave
xlabel('\eta');
ylabel('Information (bits)');
end
toc;
end