qis.utils.quantile_buckets.get_quantile_probabilities¶
- qis.utils.quantile_buckets.get_quantile_probabilities(q)[source]¶
Probabilities of a partition, from 0 to 1.
- Parameters:
q (int | Sequence[float] | ndarray) – number of equal buckets, a positive integer, or explicit probabilities increasing strictly from 0 to 1
- Returns:
the probabilities; for an integer the fractions
i / q, those not exact in binary rounded up to the next double- Raises:
ValueError – if
qis not a positive integer or a valid probability vector- Return type: