pylops.signalprocessing.DWT

class pylops.signalprocessing.DWT(dims, dir=0, wavelet='haar', level=1, dtype='float64')[source]

One dimensional Wavelet operator.

Apply 1D-Wavelet Transform along a specific direction dir of a multi-dimensional array of size dims.

Note that the Wavelet operator is an overload of the pywt implementation of the wavelet transform. Refer to https://pywavelets.readthedocs.io for a detailed description of the input parameters.

Parameters:
dims : int or tuple

Number of samples for each dimension

dir : int, optional

Direction along which FFT is applied.

wavelet : str, optional

Name of wavelet type. Use pywt.wavelist(kind='discrete') for a list of available wavelets.

level : int, optional

Number of scaling levels (must be >=0).

dtype : str, optional

Type of elements in input array.

Raises:
ModuleNotFoundError

If pywt is not installed

ValueError

If wavelet does not belong to pywt.families

Notes

The Wavelet operator applies the multilevel Discrete Wavelet Transform (DWT) in forward mode and the multilevel Inverse Discrete Wavelet Transform (IDWT) in adjoint mode.

Wavelet transforms can be used to compress signals and present a key advantage over Fourier transforms in that they captures both frequency and location information in time. Consider using this operator as sparsifying transform when using L1 solvers.

Attributes:
shape : tuple

Operator shape

explicit : bool

Operator contains a matrix that can be solved explicitly (True) or not (False)

Methods

__init__(self, dims[, dir, wavelet, level, …]) Initialize this LinearOperator.
adjoint(self) Hermitian adjoint.
apply_columns(self, cols) Apply subset of columns of operator
cond(self, \*\*kwargs_eig) Condition number of linear operator.
conj(self) Complex conjugate operator
div(self, y[, niter]) Solve the linear problem \(\mathbf{y}=\mathbf{A}\mathbf{x}\).
dot(self, x) Matrix-matrix or matrix-vector multiplication.
eigs(self[, neigs, symmetric, niter]) Most significant eigenvalues of linear operator.
matmat(self, X) Matrix-matrix multiplication.
matvec(self, x) Matrix-vector multiplication.
rmatmat(self, X) Adjoint matrix-matrix multiplication.
rmatvec(self, x) Adjoint matrix-vector multiplication.
todense(self) Return dense matrix.
transpose(self) Transpose this linear operator.

Examples using pylops.signalprocessing.DWT