Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Collect histogram data in an association of bin intervals and bin heights
ResourceFunction["BinCountAssociation"][{x1,x2,…}] gives an association of bin intervals and histogram heights of the values xi. | |
ResourceFunction["BinCountAssociation"][data,bspec] gives an association of bin intervals and histogram heights with bins specified by bspec. | |
ResourceFunction["BinCountAssociation"][data,bspec,hspec] gives an association of bin intervals and histogram heights with bin heights computed according to the specification hspec. |
Generate an Association of bin intervals and heights:
| In[1]:= |
| Out[1]= | ![]() |
Use unit width bins:
| In[2]:= |
| Out[2]= |
Use different height functions:
| In[3]:= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= | ![]() |
| In[6]:= |
| Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License