scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
tf2sos(b, a, pairing=None, *, analog=False)

Notes

It is generally discouraged to convert from TF to SOS format, since doing so usually will not improve numerical precision errors. Instead, consider designing filters in ZPK format and converting directly to SOS. TF is converted to SOS by first converting to ZPK format, then converting ZPK to SOS.

versionadded

Parameters

b : array_like

Numerator polynomial coefficients.

a : array_like

Denominator polynomial coefficients.

pairing : {None, 'nearest', 'keep_odd', 'minimal'}, optional

The method to use to combine pairs of poles and zeros into sections. See zpk2sos for information and restrictions on :None:None:`pairing` and :None:None:`analog` arguments.

analog : bool, optional

If True, system is analog, otherwise discrete.

versionadded

Returns

sos : ndarray

Array of second-order filter coefficients, with shape (n_sections, 6) . See sosfilt for the SOS filter format specification.

Return second-order sections from transfer function representation

See Also

sosfilt
zpk2sos

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._ltisys.TransferFunctionContinuous scipy.signal._ltisys.TransferFunction scipy.signal._ltisys.TransferFunctionDiscrete

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#1148
type: <class 'function'>
Commit: