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

CWT magnitude conversion #27

Open
szokolai-mate opened this issue Oct 18, 2020 · 0 comments
Open

CWT magnitude conversion #27

szokolai-mate opened this issue Oct 18, 2020 · 0 comments
Assignees
Labels

Comments

@szokolai-mate
Copy link

Could you please shed some light on how the CWT coefficients could be used for a "correct" magnitude spectrum?
Currently, the magnitudes seem to be a function of frequency, with lower frequencies having much higher magnitudes.

As an example, I have generated a test signal with two sinusoidal components: 50Hz at 0.5 amplitude and 440Hz at 0.5 amplitude.
My goal would be the equivalent of what Matlabs CWT gives me: the two components with 0.5 and 0.5 magnitudes. This screenshot illustrates the "imbalance", and I get the same results by using the library linked to my program:
Screenshot from 2020-10-18 14-55-38
As you can see, the frequencies are correct, but 50Hz shows ~11.728, and 440Hz shows ~4.62 as magnitudes.

Appreciate the help!

@rafat rafat self-assigned this Oct 24, 2020
@rafat rafat added the question label Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants