(q)
| 4532 | |
| 4533 | |
| 4534 | def _quantile_is_valid(q): |
| 4535 | # avoid expensive reductions, relevant for arrays with < O(1000) elements |
| 4536 | if q.ndim == 1 and q.size < 10: |
| 4537 | for i in range(q.size): |
| 4538 | if not (0.0 <= q[i] <= 1.0): |
| 4539 | return False |
| 4540 | elif not (q.min() >= 0 and q.max() <= 1): |
| 4541 | return False |
| 4542 | return True |
| 4543 | |
| 4544 | |
| 4545 | def _compute_virtual_index(n, quantiles, alpha: float, beta: float): |
no test coverage detected
searching dependent graphs…