| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
BUG: Avoid signed overflow in histogram
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When dividing the range between first and last, the formula `(x - first) / (last - first)` is used, where `last >= first`
This falls apart if the types of these variables are signed integers, in which case overflow can occur.
The solution is to force the subtraction result to be unsigned.
This is a regression in 1.15.0
|
|\ \
| | |
| | | |
ENH: Add density argument to histogramdd.
|
| | |
| | |
| | |
| | | |
Fixes gh-4371
|
|\ \ \
| | | |
| | | | |
BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
|
| | | |
| | | |
| | | |
| | | | |
Fixes #11426, which was introduced in #11323 and #11352
|
|\ \ \ \
| |/ / /
|/| / /
| |/ / |
TST: Show that histogramdd's normed argument is histogram's density
|
| |/
| |
| |
| | |
Relevant to gh-4371
|
|/
|
|
| |
Documenting this argument at such length gives it authenticity it does not deserve.
|
|\
| |
| | |
BUG: np.histogramdd loses precision on its inputs, leading to incorrect results
|
| |
| |
| |
| | |
This is due to gh-11022.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously a fuzzy rounded comparison was used for the rightmost bin of histogramdd.
It's not clear why this was done, and it resulted in surprising behavior.
This also removes the restriction that bin edges must be floats, and allows integer arrays to be passed (and returned)
Fixes gh-10864
|
|/
|
|
|
|
|
|
|
| |
User- and non-user-facing typos.
Some source typos fixes as well.
Found via `codespell`.
|
|
|
| |
Now falls back on sturges estimator when the IQR is zero
|
|
|
|
|
| |
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
|
|
|
|
|
|
|
|
|
|
|
| |
Use standard pytest markers everywhere in the numpy tests. At this point
there should be no nose dependency. However, nose is required to test
the legacy decorators if so desired.
At this point, numpy test cannot be run in the way with runtests, rather
installed numpy can be tested with `pytest --pyargs numpy` as long as
that is not run from the repo. Run it from the tools directory or some
such.
|
|
|
|
|
| |
Fixes #10183
Documentation is copied from np.histogram
|
|
|
|
|
|
|
|
| |
Fixes #8123, closes #9189, fixes #10319
This is a workaround to #10322, not a fix for it.
Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path.
|
|
|
|
| |
Currently only supported for explicit bins
|
|
|
|
|
| |
Fixes gh-7503
Closes gh-8984
|
|
|
|
| |
Closes gh-7864
|
|
800 self-contained lines are easily enough to go in their own file, as are the 500 lines of tests.
For compatibility, the names are still available through `np.lib.function_base.histogram` and `from np.lib.function_base import *`
For simplicity of imports, all of the unqualified `np.` names are now qualified
|