diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-03-03 21:20:13 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-03-03 22:34:02 +0100 |
commit | f4dd54aa614b263950b7a57329eb0ab9a2f2eadf (patch) | |
tree | ef7178a9b7801f42c31290624faf76a1cf5b969c /numpy/lib/function_base.py | |
parent | 91f87e1f613630ff0ad9864017f059afcd6e57f1 (diff) | |
download | numpy-f4dd54aa614b263950b7a57329eb0ab9a2f2eadf.tar.gz |
DOC: merge wiki doc edits.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 4ab1679e5..2de5c6193 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -2408,7 +2408,7 @@ def hamming(M): ----- The Hamming window is defined as - .. math:: w(n) = 0.54 + 0.46cos\\left(\\frac{2\\pi{n}}{M-1}\\right) + .. math:: w(n) = 0.54 - 0.46cos\\left(\\frac{2\\pi{n}}{M-1}\\right) \\qquad 0 \\leq n \\leq M-1 The Hamming was named for R. W. Hamming, an associate of J. W. Tukey and @@ -3000,8 +3000,8 @@ def percentile(a, q, axis=None, out=None, overwrite_input=False): Given a vector V of length N, the qth percentile of V is the qth ranked value in a sorted copy of V. A weighted average of the two nearest neighbors is used if the normalized ranking does not match q exactly. - The same as the median if ``q=0.5``, the same as the minimum if ``q=0`` - and the same as the maximum if ``q=1``. + The same as the median if ``q=50``, the same as the minimum if ``q=0`` + and the same as the maximum if ``q=100``. Examples -------- @@ -3108,7 +3108,7 @@ def trapz(y, x=None, dx=1.0, axis=-1): Returns ------- - out : float + trapz : float Definite integral as approximated by trapezoidal rule. See Also @@ -3547,7 +3547,7 @@ def append(arr, values, axis=None): Returns ------- - out : ndarray + append : ndarray A copy of `arr` with `values` appended to `axis`. Note that `append` does not occur in-place: a new array is allocated and filled. If `axis` is None, `out` is a flattened array. |