Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/source/ref/iswt-inverse-stationary-wavelet-transform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ Multilevel 1D ``iswt``

.. autofunction:: iswt

With the default ``trim_approx=False``, :func:`swt` returns one
``(cA, cD)`` pair per level. If you stack these pairs into a NumPy array,
restore the pairs before passing the coefficients to :func:`iswt`. The
stacked array can have the same shape as trimmed coefficients from a
multidimensional signal.

>>> import numpy as np
>>> import pywt
>>> x = np.arange(1., 9.)
>>> stacked = np.asarray(pywt.swt(x, 'haar', level=2))
>>> pairs = [tuple(level) for level in stacked]
>>> np.testing.assert_allclose(pywt.iswt(pairs, 'haar'), x)

Multilevel 2D ``iswt2``
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down