(q)
| 4563 | |
| 4564 | |
| 4565 | def _quantile_is_valid(q): |
| 4566 | # avoid expensive reductions, relevant for arrays with < O(1000) elements |
| 4567 | if q.ndim == 1 and q.size < 10: |
| 4568 | for i in range(q.size): |
| 4569 | if not (0.0 <= q[i] <= 1.0): |
| 4570 | return False |
| 4571 | else: |
| 4572 | if not (np.all(0 <= q) and np.all(q <= 1)): |
| 4573 | return False |
| 4574 | return True |
| 4575 | |
| 4576 | |
| 4577 | def _check_interpolation_as_method(method, interpolation, fname): |
no test coverage detected