Mathematica: Extracting histogram information

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
Niles
Messages
1,834
Reaction score
0
Hi

I have a histogram of some numbers following a PDF, such as
Code:
Histogram[RandomReal[1, 100]]
What I want is to extract the information contained in this histogram in a list, i.e. get a list of the bin value (e.g. the average value it represents) and the number of entries in it. Is using bincounts the easiest way to obtain the number of entries? Then I guess I can manually find the average value of the bin.


Niles.
 
Physics news on Phys.org
I have succesfully used bincounts, and then manually found the average bin-value. So all OK!Niles.