Skip to content

A question about normalization of morlet wavelet #19

@KareemShalabi

Description

@KareemShalabi

Hello,

I just to want to express my appreciation for the amazing work you have done in this project. Truly the level of attention to details is astounding.
I have a question about the code for spectral analysis using Morlet wavelets.
I am seeing computing of the sine wave, as well the Gaussian envelope. I am guessing 'a' is the scaling factor, together with the normalization factor which is added for the wavelet to have a unit energy. I think you are using (1/sqrt(sigma)) as a normalization term which is a popular normalization scheme for morlet wavelets.

Having used this function, although the power spectrum matches what I got from other libraries graphically ( pycwt or matlab old-version toolbox), but the raw values don't seem to be normalized to the [0, 1] range. I am constantly getting values in the range of tens. Comparing both libraries, values align by a factor of 10 to the power of 3, which is oddly enough is the sampling frequency of the signals.

I am aware it is not relevant if you are doing a baseline normalization, but for multiple reasons, I am not able to do that in my current analysis. Can you point to the right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions