Commit 1d38f70
committed
Fix bad histogramming bins in mri/eeg example.
The previous version of the histogram showed regular "spikes" which are
entirely artefactual; they come from the fact that we were binning
(effectively) integer data with floating point bins that did not all
cover the same number of ints (even though they have the same floating
point width). Using an explicit, integer binsize avoids this issue.1 parent 2aee6cc commit 1d38f70
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
36 | 33 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 34 | | |
41 | 35 | | |
42 | 36 | | |
| |||
72 | 66 | | |
73 | 67 | | |
74 | 68 | | |
75 | | - | |
76 | 69 | | |
77 | 70 | | |
0 commit comments