pyrad.util.compute_quantiles_from_hist#

pyrad.util.compute_quantiles_from_hist(bin_centers, hist, quantiles=None)[source]#

computes quantiles from histograms

Parameters:
  • bin_centers (ndarray 1D) – the bins

  • hist (ndarray 1D) – the histogram

  • quantiles (float array) – list of quantiles to compute

Returns:

  • quantiles (float array) – list of quantiles

  • values (float array) – values at each quantile