Skip to content

Commit

Permalink
DOC: signal: Update values in zpk2sos docstring examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Jul 21, 2022
1 parent d44b6a1 commit 4982f9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scipy/signal/_filter_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -1415,19 +1415,19 @@ def zpk2sos(z, p, k, pairing=None, *, analog=False):
The coefficients of the numerators of the sections:
>>> sos[:, :3]
array([[ 0.0014154 , 0.00248707, 0.0014154 ],
[ 1. , 0.72965193, 1. ],
[ 1. , 0.17594966, 1. ]])
array([[0.0014152 , 0.00248677, 0.0014152 ],
[1. , 0.72976874, 1. ],
[1. , 0.17607852, 1. ]])
The symmetry in the coefficients occurs because all the zeros are on the
unit circle.
The coefficients of the denominators of the sections:
>>> sos[:, 3:]
array([[ 1. , -1.32543251, 0.46989499],
[ 1. , -1.26117915, 0.6262586 ],
[ 1. , -1.25707217, 0.86199667]])
array([[ 1. , -1.32544025, 0.46989976],
[ 1. , -1.26118294, 0.62625924],
[ 1. , -1.2570723 , 0.8619958 ]])
The next example shows the effect of the `pairing` option. We have a
system with three poles and three zeros, so the SOS array will have
Expand Down

0 comments on commit 4982f9f

Please sign in to comment.