diff options
author | Jamie <dodgerbarker@gmail.com> | 2021-02-10 18:16:02 +0000 |
---|---|---|
committer | Jamie <dodgerbarker@gmail.com> | 2021-02-10 18:16:02 +0000 |
commit | 570710aafab435024ee17440fb3207740a0d39c2 (patch) | |
tree | 8091f3c22e0f3a16f84bb2789ee6c5a57c82e65e | |
parent | 7828422c59947132e173cc0802059a8fe0858201 (diff) | |
download | numpy-570710aafab435024ee17440fb3207740a0d39c2.tar.gz |
Adjusted formulas to estimator and removed repeat
-rw-r--r-- | numpy/lib/histograms.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/histograms.py b/numpy/lib/histograms.py index bd8c6cb8e..b6909bc1d 100644 --- a/numpy/lib/histograms.py +++ b/numpy/lib/histograms.py @@ -563,8 +563,7 @@ def histogram_bin_edges(a, bins=10, range=None, weights=None): bins. All estimators that compute bin counts are recast to bin width using the `ptp` of the data. The final bin count is obtained from ``np.round(np.ceil(range / h))``. The final bin width is often less - than what is returned by the formulas below, in order to allow the - bins to fit the entire range of the data. + than what is returned by the estimators below. 'auto' (maximum of the 'sturges' and 'fd' estimators) A compromise to get a good value. For small datasets the Sturges |