summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime <jaime.frio@gmail.com>2015-12-12 14:43:44 +0100
committerJaime <jaime.frio@gmail.com>2015-12-12 14:43:44 +0100
commit9ba59e1174cfdc0cf29b654cf0bf49a59e1a3631 (patch)
tree330bd74ef4e00ceed1c08c25b7ecc94c50b8b142
parent623fdd95cf1505fb867cab0040d68714422ac1bf (diff)
parent41de3c2d8c84dbfa406ccb77dd67d55f555bee8a (diff)
downloadnumpy-9ba59e1174cfdc0cf29b654cf0bf49a59e1a3631.tar.gz
Merge pull request #6820 from madphysicist/patch-1
Updated typos in histogram bin estimator equations
-rw-r--r--numpy/lib/function_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 9261dba22..3298789ee 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -268,14 +268,14 @@ def histogram(a, bins=10, range=None, normed=False, weights=None,
large datasets respectively. Switchover point is usually x.size~1000.
'FD' (Freedman Diaconis Estimator)
- .. math:: h = 2 \\frac{IQR}{n^{-1/3}}
+ .. math:: h = 2 \\frac{IQR}{n^{1/3}}
The binwidth is proportional to the interquartile range (IQR)
and inversely proportional to cube root of a.size. Can be too
conservative for small datasets, but is quite good
for large datasets. The IQR is very robust to outliers.
'Scott'
- .. math:: h = \\frac{3.5\\sigma}{n^{-1/3}}
+ .. math:: h = \\frac{3.5\\sigma}{n^{1/3}}
The binwidth is proportional to the standard deviation (sd) of the data
and inversely proportional to cube root of a.size. Can be too
conservative for small datasets, but is quite good