This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

BinLists

BinLists
gives lists of the elements whose values lie in successive integer bins.
BinLists
gives lists of the elements whose values lie in successive bins of width dx.
BinLists
gives lists of the that lie in successive bins of width dx from to .
BinLists
gives lists of the that lie in the intervals , , ....
BinLists
gives an array of lists where the first index corresponds to x bins, the second to y, and so on.
  • BinLists drops elements whose values do not correspond to real numbers.
  • Within each bin, elements appear in the same order as in the original data.
  • BinLists 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 BinLists, elements are placed in bin i when their values satisfy .
  • If the do not form an increasing sequence, they are automatically sorted by BinLists.
  • In BinLists, elements are put in bin i when their values satisfy .
  • If data consists of length-n sublists, then n bin specifications must be given, and BinLists yields an array of lists of depth n.
Make lists of elements in bins of width 1 from 0 to 10:
List elements in a sequence of ranges:
List elements in bins of a specified width:
Make lists of elements in bins of width 1 from 0 to 10:
In[1]:=
Click for copyable input
Out[1]=
 
List elements in a sequence of ranges:
In[1]:=
Click for copyable input
Out[1]=
 
List elements in bins of a specified width:
In[1]:=
Click for copyable input
Out[1]=
List squares mod 3 and 5 in two-dimensional unit bins:
List random pairs in bins of width 0.25 in both dimensions:
List multidimensional data in ranges:
Bin data in any dimension:
Bin data, ignoring values that are not real:
Bin data of any precision:
Visualize two-dimensional data in bins:
The length of BinLists is equivalent to the results from BinCounts:
Binning intervals are closed on the left:
New in 6