Currently, we only support uniform "refinement" in the wavelet packets by passing a maxlevel to the transform function. Then the full packet tree is expanded up to that depth.
What is currently not supported directly are partial expansions as asked in #69.
I can think of two ways to implement this (which are complementary):
Give the expansion mechanism (which is currently implemented in _recursive_dwt) a public interface
Add an optional callback parameter to the transform method that given a tree path string (i.e. the coeff key in the packet) returns a bool of whether this coeff should be expanded.
Currently, we only support uniform "refinement" in the wavelet packets by passing a maxlevel to the transform function. Then the full packet tree is expanded up to that depth.
What is currently not supported directly are partial expansions as asked in #69.
I can think of two ways to implement this (which are complementary):
_recursive_dwt
) a public interfacetransform
method that given a tree path string (i.e. the coeff key in the packet) returns a bool of whether this coeff should be expanded.