Added correlation plots

This commit is contained in:
2015-10-20 18:26:43 +02:00
parent 2787e55094
commit 69b9afbc80
4 changed files with 242 additions and 5 deletions

View File

@@ -3,16 +3,16 @@ nrolls = [ 20, 100, 1000 ];
for i = [1:length(nrolls)]
d = rollthedie( nrolls(i) );
% plain hist:
% hist( d )
%hist( d )
% check bin counts of plain hist:
% h = hist( d )
% force 6 bins:
% hist( d, 6 )
%hist( d, 6 )
% set the right bin centers:
bins = 1:6;
%bins = 1:6;
%hist( d, bins )
% normalize histogram and compare to expectation: