Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about normalization of morlet wavelet #19

Open
KareemShalabi opened this issue Oct 23, 2023 · 0 comments
Open

A question about normalization of morlet wavelet #19

KareemShalabi opened this issue Oct 23, 2023 · 0 comments

Comments

@KareemShalabi
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant