summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorJoseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov>2016-03-16 14:10:33 -0400
committerJoseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov>2016-03-16 14:40:44 -0400
commit434c4ecbe010c0bacf7f93cdf761ca015eeae3fb (patch)
treed934c1843662ee7d1c8b2c22f6fe5af1032c7997 /numpy/lib/function_base.py
parent858b5b201f82be0aa98210dc363f049939a15e31 (diff)
downloadnumpy-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.py2
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):