rex.utilities.bc_utils.sample_q_invlog

sample_q_invlog(n_samples, log_base)[source]

Sample quantiles from 0 to 1 while concentrating samples near quantile=1

Parameters:
  • n_samples (int) – Number of points to sample between 0 and 1

  • log_base (int | float) – Log base value. A higher value will concentrate more samples at the extreme sides of the distribution.

Returns:

quantiles (np.ndarray) – 1D array of log-spaced samples from 0 to 1