diff options
author | Christian Lorentzen <lorentzen.ch@gmail.com> | 2023-04-28 13:34:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 13:34:53 +0200 |
commit | 30c047cdb2e0c0b233e5dc3b61c081ce1f6df3d3 (patch) | |
tree | 7478a026096db054cd5ce6add1bfbf6bfdd96d94 /numpy/array_api/_array_object.py | |
parent | e0320b7d97be9c1f8de6175553cc4c88d5fd6697 (diff) | |
download | numpy-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