diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-07-01 09:27:32 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-01 09:27:32 -0600 |
commit | 2e2abc0ee306da72b34dd29cbc670fc260faf24c (patch) | |
tree | f7e19b9e0350c8a2bf5b9e89e87c7ded0bf5bf6c /numpy | |
parent | 0e4253526c727f50696f6233fee3d50a419ba9fe (diff) | |
parent | 2432813b294bcfb62245b0acb4c61735d01dd8a9 (diff) | |
download | numpy-2e2abc0ee306da72b34dd29cbc670fc260faf24c.tar.gz |
Merge pull request #9320 from WarrenWeckesser/heaviside-docstring
DOC: Use x1 and x2 in the heaviside docstring.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/code_generators/ufunc_docstrings.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py index 6d0d7af34..5e0280a33 100644 --- a/numpy/core/code_generators/ufunc_docstrings.py +++ b/numpy/core/code_generators/ufunc_docstrings.py @@ -928,25 +928,24 @@ add_newdoc('numpy.core.umath', 'heaviside', The Heaviside step function is defined as:: - 0 if x < 0 - heaviside(x, h0) = h0 if x == 0 - 1 if x > 0 + 0 if x1 < 0 + heaviside(x1, x2) = x2 if x1 == 0 + 1 if x1 > 0 - where `h0` is often taken to be 0.5, but 0 and 1 are also sometimes used. + where `x2` is often taken to be 0.5, but 0 and 1 are also sometimes used. Parameters ---------- - x : array_like + x1 : array_like Input values. - $PARAMS - h0 : array_like - The value of the function at x = 0. + x2 : array_like + The value of the function when x1 is 0. $PARAMS Returns ------- out : ndarray - The output array, element-wise Heaviside step function of `x`. + The output array, element-wise Heaviside step function of `x1`. Notes ----- |