summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorChristian Lorentzen <lorentzen.ch@gmail.com>2023-04-28 13:34:53 +0200
committerGitHub <noreply@github.com>2023-04-28 13:34:53 +0200
commit30c047cdb2e0c0b233e5dc3b61c081ce1f6df3d3 (patch)
tree7478a026096db054cd5ce6add1bfbf6bfdd96d94 /numpy/array_api/_array_object.py
parente0320b7d97be9c1f8de6175553cc4c88d5fd6697 (diff)
downloadnumpy-30c047cdb2e0c0b233e5dc3b61c081ce1f6df3d3.tar.gz
TST: add tests for numpy.quantile (#23129)
This PR adds additional tests for quantiles: 1. Identification equation $E[V(q, Y)] = 0$ 2. Adding a constant $c > 0$: $q(c + Y) = c + q(Y)$ 3. Multiplying by a constant $c > 0$: $q(c \cdot Y) = c \cdot q(y)$ 4. Multiplying by $-1$: $q_{\alpha}(-Y) = -q_{1-\alpha}(Y)$ (Note by seberg as reviewer: These tests are fairly complex, but may be useful for future development. But if they seem too complicated, they are probably not really vital and could be shortened or removed.)
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions