scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
kaiser_atten(numtaps, width)

Given the number of taps :None:None:`N` and the transition width :None:None:`width`, compute the attenuation a in dB, given by Kaiser's formula:

a = 2.285 * (N - 1) * pi * width + 7.95

Parameters

numtaps : int

The number of taps in the FIR filter.

width : float

The desired width of the transition region between passband and stopband (or, in general, at any discontinuity) for the filter, expressed as a fraction of the Nyquist frequency.

Returns

a : float

The attenuation of the ripple, in dB.

Compute the attenuation of a Kaiser FIR filter.

See Also

kaiser_beta
kaiserord

Examples

Suppose we want to design a FIR filter using the Kaiser window method that will have 211 taps and a transition width of 9 Hz for a signal that is sampled at 480 Hz. Expressed as a fraction of the Nyquist frequency, the width is 9/(0.5*480) = 0.0375. The approximate attenuation (in dB) is computed as follows:

>>> from scipy.signal import kaiser_atten
... kaiser_atten(211, 0.0375) 64.48099630593983
See :

Back References

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

scipy.signal._fir_filter_design.kaiserord scipy.signal._fir_filter_design.kaiser_atten

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/_fir_filter_design.py#86
type: <class 'function'>
Commit: