Loading [MathJax]/extensions/tex2jax.js
scipy 1.10.1 Pypi GitHub Homepage
Other Docs

NotesParametersReturns
normalize(b, a)

If values of b are too close to 0, they are removed. In that case, a BadCoefficients warning is emitted.

Notes

Coefficients for both the numerator and denominator should be specified in descending exponent order (e.g., s^2 + 3s + 5 would be represented as [1, 3, 5]).

Parameters

b: array_like :

Numerator of the transfer function. Can be a 2-D array to normalize multiple transfer functions.

a: array_like :

Denominator of the transfer function. At most 1-D.

Returns

num: array

The numerator of the normalized transfer function. At least a 1-D array. A 2-D array if the input num is a 2-D array.

den: 1-D array

The denominator of the normalized transfer function.

Normalize numerator/denominator of a continuous-time transfer function.

Examples

from scipy.signal import normalize
Normalize the coefficients of the transfer function ``(3*s^2 - 2*s + 5) / (2*s^2 + 3*s + 1)``:
b = [3, -2, 5]
a = [2, 3, 1]
normalize(b, a)
A warning is generated if, for example, the first coefficient of `b` is 0. In the following example, the result is as expected:
import warnings
with warnings.catch_warnings(record=True) as w:
    num, den = normalize([0, 3, 6], [2, -5, 4])
num
den
print(w[0].message)
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/signal/_filter_design.py#1661
type: <class 'function'>
Commit: