pylops.utils.signalprocessing.nonstationary_convmtx¶
- pylops.utils.signalprocessing.nonstationary_convmtx(H, n, hc=0, pad=(0, 0))[source]¶
Convolution matrix from a bank of filters
Makes a dense convolution matrix \(\mathbf{C}\) such that the dot product
np.dot(C, x)is the nonstationary convolution of the bank of filters \(H=[h_1, h_2, h_n]\) and the input signal \(x\).- Parameters:
- H
numpy.ndarray Convolution filters (2D array of shape \([n_\text{filters} \times n_{h}]\)
- n
int Number of columns of convolution matrix
- hc
numpy.ndarray, optional Index of center of first filter
- pad
numpy.ndarray Zero-padding to apply to the bank of filters before and after the provided values (use it to avoid wrap-around or pass filters with enough padding)
- H
- Returns:
- C
numpy.ndarray Convolution matrix
- C