Getting bin values from histogram

using StatsBase, LinearAlgebra

h = normalize(fit(Histogram, randn(100)), mode=:probability)

gives you a structure h with components edges and weights.

1 Like