summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index dd1bd18aa..d611dd225 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -2696,7 +2696,7 @@ def corrcoef(x, y=None, rowvar=True, bias=np._NoValue, ddof=np._NoValue, *,
relationship between the correlation coefficient matrix, `R`, and the
covariance matrix, `C`, is
- .. math:: R_{ij} = \\frac{ C_{ij} } { \\sqrt{ C_{ii} * C_{jj} } }
+ .. math:: R_{ij} = \\frac{ C_{ij} } { \\sqrt{ C_{ii} C_{jj} } }
The values of `R` are between -1 and 1, inclusive.
@@ -3983,18 +3983,21 @@ def percentile(a,
inverted_cdf:
method 1 of H&F [1]_.
This method gives discontinuous results:
+
* if g > 0 ; then take j
* if g = 0 ; then take i
averaged_inverted_cdf:
method 2 of H&F [1]_.
This method give discontinuous results:
+
* if g > 0 ; then take j
* if g = 0 ; then average between bounds
closest_observation:
method 3 of H&F [1]_.
This method give discontinuous results:
+
* if g > 0 ; then take j
* if g = 0 and index is odd ; then take j
* if g = 0 and index is even ; then take i
@@ -4002,24 +4005,28 @@ def percentile(a,
interpolated_inverted_cdf:
method 4 of H&F [1]_.
This method give continuous results using:
+
* alpha = 0
* beta = 1
hazen:
method 5 of H&F [1]_.
This method give continuous results using:
+
* alpha = 1/2
* beta = 1/2
weibull:
method 6 of H&F [1]_.
This method give continuous results using:
+
* alpha = 0
* beta = 0
linear:
method 7 of H&F [1]_.
This method give continuous results using:
+
* alpha = 1
* beta = 1
@@ -4028,6 +4035,7 @@ def percentile(a,
This method is probably the best method if the sample
distribution function is unknown (see reference).
This method give continuous results using:
+
* alpha = 1/3
* beta = 1/3
@@ -4036,6 +4044,7 @@ def percentile(a,
This method is probably the best method if the sample
distribution function is known to be normal.
This method give continuous results using:
+
* alpha = 3/8
* beta = 3/8
@@ -4253,18 +4262,21 @@ def quantile(a,
inverted_cdf:
method 1 of H&F [1]_.
This method gives discontinuous results:
+
* if g > 0 ; then take j
* if g = 0 ; then take i
averaged_inverted_cdf:
method 2 of H&F [1]_.
This method gives discontinuous results:
+
* if g > 0 ; then take j
* if g = 0 ; then average between bounds
closest_observation:
method 3 of H&F [1]_.
This method gives discontinuous results:
+
* if g > 0 ; then take j
* if g = 0 and index is odd ; then take j
* if g = 0 and index is even ; then take i
@@ -4272,24 +4284,28 @@ def quantile(a,
interpolated_inverted_cdf:
method 4 of H&F [1]_.
This method gives continuous results using:
+
* alpha = 0
* beta = 1
hazen:
method 5 of H&F [1]_.
This method gives continuous results using:
+
* alpha = 1/2
* beta = 1/2
weibull:
method 6 of H&F [1]_.
This method gives continuous results using:
+
* alpha = 0
* beta = 0
linear:
method 7 of H&F [1]_.
This method gives continuous results using:
+
* alpha = 1
* beta = 1
@@ -4298,6 +4314,7 @@ def quantile(a,
This method is probably the best method if the sample
distribution function is unknown (see reference).
This method gives continuous results using:
+
* alpha = 1/3
* beta = 1/3
@@ -4306,6 +4323,7 @@ def quantile(a,
This method is probably the best method if the sample
distribution function is known to be normal.
This method gives continuous results using:
+
* alpha = 3/8
* beta = 3/8