From 434c4ecbe010c0bacf7f93cdf761ca015eeae3fb Mon Sep 17 00:00:00 2001 From: Joseph Fox-Rabinovitz Date: Wed, 16 Mar 2016 14:10:33 -0400 Subject: BUG: Ongoing fixes to PR#7416 Removed superfluous `ceil` call in automated bin width estimator. Updated tests to reflect modified estimator. --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') 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): -- cgit v1.2.1