Skip to content

allow calling CWT with discrete wavelets? #365

Open
@grlee77

Description

@grlee77

A user on the mailing list asked why Haar and Daubechies wavelets are not allowed for cwt. In Matlab R2012b, the cwt does allow using 'haar', 'db4', etc as the wavelet name. However, in R2016b Matlab apparently replaced their cwt with a new implementation that operates differently. Apparently the old cwt is still available as well.

I can verify that our existing code does actually already give the same coefficients as R2012b Matlab for the Daubechies wavelets if we change the following line:

if wavelet.complex_cwt:

to

if hasattr(wavelet, 'complex_cwt') and wavelet.complex_cwt

so that an AttributeError is avoided.

I am not an expert in CWT analysis, so I don't know if there are strong use cases for these wavelets in a CWT analysis in practice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions