Skip to content

BinCounts

Counts how many elements fall into evenly-spaced bins.

$ wo 'BinCounts[{1, 2, 2, 3, 4, 4, 4, 5}, 1]'
{0, 1, 2, 1, 3, 1}