naginterfaces.library.wav.dim1_​sngl_​inv

naginterfaces.library.wav.dim1_sngl_inv(ca, cd, n, comm)[source]

dim1_sngl_inv computes the inverse one-dimensional discrete wavelet transform (DWT) at a single level. The initialization function dim1_init() must be called first to set up the DWT options.

For full information please refer to the NAG Library document for c09cb

https://www.nag.com/numeric/nl/nagdoc_30/flhtml/c09/c09cbf.html

Parameters
cafloat, array-like, shape

The approximation coefficients, . These will normally be the result of some transformation on the coefficients computed by dim1_sngl_fwd().

cdfloat, array-like, shape

The detail coefficients, . These will normally be the result of some transformation on the coefficients computed by dim1_sngl_fwd().

nint

, the length of the original data array from which the wavelet coefficients were computed by dim1_sngl_fwd() and the length of the data array that is to be reconstructed by this function.

commdict, communication object

Communication structure.

This argument must have been initialized by a prior call to dim1_init().

Returns
yfloat, ndarray, shape

The reconstructed data based on approximation and detail coefficients and and the transform options supplied to the initialization function dim1_init().

Raises
NagValueError
(errno )

On entry, array dimension not large enough: but must be at least .

(errno )

On entry, is inconsistent with the value passed to the initialization function: , should be .

(errno )

Either the initialization function has not been called first or array [‘icomm’] has been corrupted.

(errno )

Either the initialization function was called with or array [‘icomm’] has been corrupted.

Notes

dim1_sngl_inv performs the inverse operation of dim1_sngl_fwd(). That is, given sets of approximation coefficients and detail coefficients, computed by dim1_sngl_fwd() using a DWT as set up by the initialization function dim1_init(), on a real data array of length , dim1_sngl_inv will reconstruct the data array , for , from which the coefficients were derived.