Remix.run Logo
jessetemp 31 minutes ago

The author is confusing bins with bin edges. In their first plot, the standard approach looks strange because 0-7 should be the bin edges, not the center points as shown in the plot.

You can see this confusion again in the histogram example. There are only 255 bins, not 256. If you fix that mistake and remove the 0.5 offset, then the histogram is distributed correctly at both ends.

bjourne 7 minutes ago | parent [-]

How do you fit 256 distinct values into 255 bins?