qis.utils.quantile_buckets.compute_sample_quantiles

qis.utils.quantile_buckets.compute_sample_quantiles(x, probs)[source]

Sample quantiles of the finite observations by the rule of this module.

Linear interpolation between order statistics at h = (n - 1) p, with numpy’s floating-point steps and a position within POSITION_TOLERANCE of a whole number taken as that number.

Parameters:
Returns:

one quantile per probability

Raises:

ValueError – if there is no finite observation or a probability is outside [0, 1]

Return type:

ndarray