This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.

# BinCounts

 BinCounts[{x1, x2, ...}]counts the number of elements xi whose values lie in successive integer bins. BinCounts[{x1, x2, ...}, dx] counts the number of elements xi whose values lie in successive bins of width dx. BinCounts[{x1, x2, ...}, {xmin, xmax, dx}]counts the number of xi in successive bins of width dx from xmin to xmax. BinCounts[{x1, x2, ...}, {{b1, b2, ...}}]counts the number of xi in the intervals (b1, b2), (b2, b3), .... BinCounts[{{x1, y1, ...}, {x2, y2, ...}, ...}, xbins, ybins, ...]gives an array of counts where the first index corresponds to x bins, the second to y, and so on.
• BinCounts drops elements whose values do not correspond to real numbers.
• BinCounts[data, dx] takes the bin boundaries to be integer multiples of dx, with the first bin starting at Ceiling[Min[data]-dx, dx] and the last bin ending at Floor[Max[data]+dx, dx].
• In the form BinCounts[data, {{b1, b2, ...}}], the bi at each end can be and .
• If the bi do not form an increasing sequence, they are automatically sorted by BinCounts.
• In BinCounts[data, {{b1, b2, ...}}], elements are counted in bin i when their values satisfy .
• If data consists of length-n sublists, then n bin specifications must be given, and BinCounts[data, ...] yields an array of depth n.
Count the number of elements in bins of width 1 from 0 to 10:
 Out[1]=

Count the number of elements in a sequence of ranges:
 Out[1]=

Count the number of elements in bins of a specified width:
 Out[1]=
 Scope   (6)
 Applications   (1)
New in 6