Can anyone explain what "useful" means in this context? Why is
dwt_max_level defined the way it is? Other references I have been
looking at seem to assume that one will decompose "all the way", which
wavedec by default does not. I'm not particularly attached to these
references and conversely I understand how to use the level= argument
to override if necessary, but I am curious if there is some particular
advantage to this default.
-- Nathaniel
Looking on that page, they might have an actual explanation buried in
the example:
% The rule is the last level for which at least
% one coefficient is correct.
Of course, it still isn't totally clear what this means, but I assume
it's something like "the last level for which at least one coefficient
is unaffected by edge effects". That seems consistent with your
explanation below, and makes a lot of sense.
> In general, a decomposition is "useful" when:
>
> a) decimation of coefficients takes place, so the length of
> coefficients on two subsequent levels is reduced by at least half of
> the length of the filter (otherwise there is no point in decomposing a
> signal because there is no real gain).
>
> b) decomposition coefficients still maintain characteristic of the
> original signal and are not dominated by border distortion values. As
> an illustration of such situation, please take a look at these
> examples:
[...]
Thanks, that makes things clearer.
>> Other references I have been
>> looking at seem to assume that one will decompose "all the way", which
>> wavedec by default does not.
>
> I think most of the references assume 2^x signal lengths and zero-
> padding which is a very specific situation that unfortunately often
> contrasts with real world applications.
>
> Of course choosing a decomposition strategy depends strictly on the
> problem, but in many situation a full decomposition is not even needed
> and using smaller level values like 3 or 5 is just enough.
Yeah -- my problem is a little different, in that I'm using the DWT as
a whitening transform for 1/f noise, so there actually are benefits to
pushing the decomposition rather far. (Detail coefficients are
decorrelated while approximation coefficients aren't, really, so the
more detail coefficients the better.) With signal length 256, db4,
mode="per", empirically the sweet spot seems to be level=6 rather than
level=5, in fact. But it's very nice to understand better what's going
on. The literature I've found is not very good at explaining practical
matters in clear ways. Thanks!
-- Nathaniel