let me start my first post by saying thank you for all the hard work from the community. I really enjoy diving into the julia programming language.
I am currently playing around with Monte Carlo simulations in julia, right now I am implementing reweighting techniques in particular. For this I need to handle histograms. After writing my first histograms as dictionaries (of course working with discrete states), I found
StatsBase.Histograms to be quite neat for my cause. One feature that I do not get implemented nicely, however, is to iterate over the whole histogram.
For example, with a dictionary I can do the following
for (arg, value) in Dict ... end
However, to get this done for StatsBase.Histograms, I am currently doing
for (i, arg) in enumerate(hist.edges) value = hist.weights[i] ... end
How can I nicely iterate over such histograms?
Thanks a lot