pydsm.ir.impulse_response¶
- pydsm.ir.impulse_response(h, m=None, db=80)¶
Computes the filter impulse response
Parameters: h : tuple_like
the filter definition either in zpk or in nd form.
Returns: ir : ndarray
the truncated impulse response
Other Parameters: m : int, optional
the number of samples after which the impulse response should be truncated. Defaults to None, which means try to guess
db : real, 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.