inverse sampling histograms