let maximum hist = hist.bin_limits.(Array.length hist.bin_limits - 1)