(Efficient) function to create a Histogram incrementally without plotting it?


I have many random vectors (all of the same nature/size of course) that I want to bin inside a fixed histogram. So basically I would like to incrementally fill a histogram without plotting it, in an efficient fashion.

I’ve only found the histogram function in Plots.jl, but it doesn’t seem very efficient and I don’t know how to prevent it from trying to plot, which is slow and useless (and will also crash since this code will be run on a cluster).

Can someone indicate me a module that contains such a function? Or, even better maybe, some piece of optimized code?


Check out Onlinestats.jl


Thank you very much for the reference !