dhbw.dasp.filter module
- dhbw.dasp.filter.impulse(b, a, n=None, sr=None)[source]
Returns impulse response of the transfer function specified by b and a coefficients.
- Parameters:
- barray
The numerator coefficient array.
- aarray
The denominator coefficient array.
- nint, optional
Optional number of samples.
- srint, float, optional
Optional sample rate in hertz.
- Returns:
- tarray
Corresponding time values.
- yarray
Filter impulse response values.
See also
scipy.signal.lfilter
- dhbw.dasp.filter.poles(b, a)[source]
Returns poles of the transfer function specified by b and a coefficients.
- Parameters:
- barray
The numerator coefficient array.
- aarray
The denominator coefficient array.
- Returns:
- parray
Poles of the transfer function.
See also
scipy.signal.tf2zpk
- dhbw.dasp.filter.response(b, a, n=None, sr=None, norm=False, log=False)[source]
Returns frequency and phase response of the transfer function specified by b and a coefficients.
- Parameters:
- barray
The numerator coefficient array.
- aarray
The denominator coefficient array.
- nint, optional
Optional number of samples.
- srint, float, optional
Optional sample rate in hertz.
- normbool
Option whether to normalize the output frequency response.
- logbool
Option whether to express the output frequency values logarithmically.
- Returns:
- warray
Corresponding frequency values.
- harray
Complex filter response values.
See also
scipy.signal.freqz