Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica: Extracting histogram information

  1. Jul 1, 2012 #1
    Hi

    I have a histogram of some numbers following a PDF, such as
    Code (Text):

    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.

    Best,
    Niles.
     
  2. jcsd
  3. Jul 1, 2012 #2
    I have succesfully used bincounts, and then manually found the average bin-value. So all OK!

    Best,
    Niles.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica: Extracting histogram information
Loading...