c09ddf computes the inverse one-dimensional multi-level maximal overlap discrete wavelet transform (MODWT). This routine reconstructs data from (possibly filtered or otherwise manipulated) wavelet transform coefficients calculated by c09dcf from an original set of data. The initialization routine c09aaf must be called first to set up the MODWT options.
The routine may be called by the names c09ddf or nagf_wav_dim1_mxolap_multi_inv.
c09ddf performs the inverse operation of c09dcf. That is, given a set of wavelet coefficients computed by c09dcf using a MODWT as set up by the initialization routine c09aaf on a real array of length , c09ddf will reconstruct the data array , for , from which the coefficients were derived.
Percival D B and Walden A T (2000) Wavelet Methods for Time Series Analysis Cambridge University Press
1: – IntegerInput
On entry: the number of levels to be used in the inverse multi-level transform. The number of levels must be less than or equal to , which has the value of argument nwl as used in the computation of the wavelet coefficients using c09dcf. The data will be reconstructed to level , where level is the original input dataset provided to c09dcf.
, where nwl is the value used in a preceding call to c09dcf.
2: – Character(1)Input
On entry: determines whether the approximation coefficients are stored in array c for every level of the computed transform or else only for the final level. In both cases, the detail coefficients are stored in c for every level computed.
Retain approximation coefficients for all levels computed.
Retain approximation coefficients for only the final level computed.
3: – IntegerInput
On entry: the dimension of the array c as declared in the (sub)program from which c09ddf is called.
if , ;
if , , where is the number of approximation or detail coefficients at each level and is unchanged from the preceding call to c09dcf.
4: – Real (Kind=nag_wp) arrayInput
On entry: the coefficients of a multi-level wavelet transform of the dataset.
Contains the level
approximation coefficients, for ;
Contains the level
detail coefficients, for .
The values and denote the numbers of approximation and detail coefficients respectively, which are equal. This number is returned as output in na from a preceding call to c09dcf. See c09dcf for details.
5: – IntegerInput
On entry: , the length of the data array, , to be reconstructed.
This must be the same as the value n passed to the initialization routine c09aaf.
6: – Real (Kind=nag_wp) arrayOutput
On exit: the dataset reconstructed from the multi-level wavelet transform coefficients and the transformation options supplied to the initialization routine c09aaf.
7: – Integer arrayCommunication Array
On entry: contains details of the discrete wavelet transform and the problem dimension for the forward transform previously computed by c09dcf.
8: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
On entry, . Constraint: .
On entry, nwlinv is larger than the number of levels computed by the preceding call to c09dcf: , expected .