is called.
must be large enough to contain the number of wavelet coefficients.
If
, the total number of coefficients,
, is returned in
nwc by the call to the initialization routine
c09aaf and corresponds to the MODWT being continued for the maximum number of levels possible for the given data set. When the number of levels,
, is chosen to be less than the maximum, then the number of stored coefficients is correspondingly smaller and
lenc can be reduced by noting that
detail coefficients are stored at each level, with the storage increased at the final level to contain the
approximation coefficients.
If
,
detail coefficients and
approximation coefficients are stored for each level computed, requiring
, since the numbers of stored approximation and detail coefficients are equal. The number of approximation (or detail) coefficients at each level,
, is returned in
na.