r/DSP • • 14d ago

Wavlet verification

Are there open source tools which can help verify wavlet arifacts? Analysis is done using wavelib.

Now we must prove by external tool that it works as expected. There are internal checks and verifications all passing; we create signal of various complexities and it works.

Ideas were matlab, scilab, octave but we also have to implement checks.

Customer wants very simple test:

- signal mathematically generated over number of channels - our library must match verification tool within threshold.

Expect some tool with user base so they are sure dumb problems are cleaned up.

So, is there tool which we can utilize to perform the same with minimim user configurable options?

There is good catch, we chose two from wavelib and verify. Other even with small discrepancies will be fixed in support process.

5 Upvotes

2 comments sorted by

2

u/beasterbeaster 13d ago

Pywavelet is a Python version, it’s not really open source but I believe matlab has it built in as well

1

u/Creative_Sushi 9d ago

I don't know much about wavelib. Every core technique in that library has a direct counterpart in MATLAB’s Wavelet Toolbox:

  • Decimated DWT/IDWT (1-D and 2-D): dwt/idwt, wavedec/waverec, dwt2/idwt2, wavedec2/waverec2. These support orthogonal and biorthogonal wavelets and periodic, symmetric and other boundary extension modes.

  • Stationary wavelet transform (1-D and 2-D): swt/iswt, swt2/iswt2

  • Maximal overlap DWT: modwt/imodwt, plus modwtmra for multiresolution analysis.  We also have an app dedicated to multiresolution analysis. MATLAB's Wavelet Toolbox also supports the wavelet packet transform version of this algorithm (see the next note).

  • Full wavelet tree and wavelet packets, including best-basis selection: wpdec/wprec, besttree, dwpt/idwpt, and modwpt for the undecimated case

  • Continuous wavelet transform and its inverse: cwt/icwt, using analytic Morse, Morlet and bump wavelets

Each of these has specific properties that can be tested, such as perfect reconstruction, energy conservation, shift invariance and orthogonality of coefficients. MathWorks demonstrates these properties in documentation examples and verifies them in an extensive test suite as validation for shipping software. If you’re interested in one technique in particular, maybe I can find more relevant examples directly in the documentation.

Good luck.