pyFDN.td.MatrixFIR#
- class pyFDN.td.MatrixFIR(coeffs)[source]#
Stateful matrix of FIR filters (e.g. a paraunitary scattering feedback matrix).
Every matrix entry is an FIR filter run with
scipy.signal.lfilter(); state persists acrossfilter()calls. For long impulse responses useMatrixConvolverinstead, which computes the same convolution by FFT.- Parameters:
coeffs (
ArrayLike) – FIR coefficients of shape(n_out, n_in, n_taps)in thez^{-1}convention (coeffs[i, j, k]is the tap ofz^{-k}from inputjto outputi).
Notes
pyFDN.process_fdn()constructs this filter automatically when its feedback matrixAhas shape(n_out, n_in, n_taps).Methods
__init__(coeffs)filter(block)Filter one block and advance internal state.
process(signal, *[, squeeze])Filter a whole signal in one call, from the current state.
reset()Clear internal state (no-op for stateless operators).
Attributes
in_channelsout_channels