mirror of https://github.com/jlizier/jidt
Detecting interaction lags demo: adjusting plotting code, and including sample result plots
This commit is contained in:
parent
22883aa575
commit
891fbef4e5
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue