This function transforms the wavelet coefficients, which are obtained with multi-level wavelet decomposition, back to the original signal. The definitions of the input parameters, c and len, are same as the function wavDec().
Refer to the section of wavelet Families for the detailed information about the available wavelets.
The default input values provide a quick example to generate a simple saw-tooth signal.
function wavRec input Real c[:] = {-0.707, -0.707, -0.707, -0.7069999999999999, -0.707, -0.7069999999999999, 0.707, 0.0, -1.9993959999999997, -1.9993959999999997, 0.49984899999999993, -1.4135729719999994, 3.1805391869999995, 5.6542918879999995, 3.887325672999999} "Detail and approximation coefficients. For data structure see the information section"; input Integer len[:] = {13, 7, 4, 2, 2} "Coefficient vector lengths of all levels. For data structure see the information section"; input Real lor[:] = {0.707, 0.707} "Low pass filter for reconstruction"; input Real hir[size(lor, 1)] = {0.707, -0.707} "High pass filter for reconstruction"; output Real u[:] "Reconstructed signal"; end wavRec;