pydsm.ir.impulse_response

pydsm.ir.impulse_response(h, m=None, db=80)

Computes the filter impulse response

Parameters
htuple_like

the filter definition either in zpk or in nd form.

Returns
irndarray

the truncated impulse response

Other Parameters
mint, optional

the number of samples after which the impulse response should be truncated. Defaults to None, which means try to guess

dbreal, optional

a hint about how to guess the length where the impuls response should be truncated (defaults to 80)

Notes

The guess about the lenght where the impulse response can be truncated is extremely rough. See guess_ir_length() in this module for further info.