cogwheel.utils.quantile¶
- cogwheel.utils.quantile(values, q, weights=None)¶
Compute the q-th quantile of the data.
- Parameters:
- valuesarray
Input data.
- qarray_like of float
Quantile rank, 0 <= q <= 1.
- weightsarray
Of the same shape as values.
- Returns:
- quantilesarray_like of float, of the same shape as q.