diff options
author | Joseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov> | 2016-03-16 14:10:33 -0400 |
---|---|---|
committer | Joseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov> | 2016-03-16 14:40:44 -0400 |
commit | 434c4ecbe010c0bacf7f93cdf761ca015eeae3fb (patch) | |
tree | d934c1843662ee7d1c8b2c22f6fe5af1032c7997 /numpy/lib/function_base.py | |
parent | 858b5b201f82be0aa98210dc363f049939a15e31 (diff) | |
download | numpy-434c4ecbe010c0bacf7f93cdf761ca015eeae3fb.tar.gz |
BUG: Ongoing fixes to PR#7416
Removed superfluous `ceil` call in automated bin width estimator.
Updated tests to reflect modified estimator.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 31aafda15..5453f52fa 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -187,7 +187,7 @@ def _hist_bin_sturges(x): ------- h : An estimate of the optimal bin width for the given data. """ - return x.ptp() / np.ceil(np.log2(x.size) + 1.0) + return x.ptp() / (np.log2(x.size) + 1.0) def _hist_bin_rice(x): |