Git Product home page Git Product logo

Comments (5)

fastlib avatar fastlib commented on August 24, 2024

Hi Whip123,

In the article I used the Morse wavelet to mimic the Morlet Wavelet as close as possible:

[wt,freqs] = cwt(data,'morse',fs,'FrequencyLimits',[f0 f1],'VoicesPerOctave',4,'WaveletParameters',[floor(bandwidth/40) bandwidth]);
image(abs(wt),"CDataMapping","scaled")

where fs is the sample frequency, f0 and f1 are the start and end of the frequency range, respectively, and bandwidth the sigma.

Does this answer your question?

from fcwt.

whip123 avatar whip123 commented on August 24, 2024

Hi fastlib,

Yeah, the comment is immensely helpful.

However, I am still a bit confused about how did you determine the parameters of the Morse Wavelet will have the same response as the Morlet Wavelet?

Bandwidth = 20

[wt,cwtf] = cwt(signal,'morse',fs,'FrequencyLimits',[0.25 20],'VoicesPerOctave',48,'WaveletParameters',[floor(bandwidth/40) bandwidth]);

Furthermore, just want to make sure that, do you mean "bandwidth" is Sigma. Because after applying the code above, it shows an error msg "The ratio of the time-bandwidth parameter to the symmetry parameter has exceeded 40 "

from fcwt.

fastlib avatar fastlib commented on August 24, 2024

I cannot completely recall how I did it back in 2021, but I guess I plotted the impulse response of both wavelets and compared them by sight. Matlab has written an article about this comparison on their site as well: https://www.mathworks.com/help/wavelet/ref/cwtfilterbank.html#mw_c07efe81-5d89-4243-85ba-51ec1ccfb2ff

Furthermore, I guess bandwidth is not actually the sigma used in the paper, but a variable that's proportionate to sigma (in other words, it uses a different scaling). Trial and error, and plotting should get you to your bandwidth value.

from fcwt.

whip123 avatar whip123 commented on August 24, 2024

Understood. Thanks a lot for the clarification. Furthermore, I have a few more confusion that I would also like to ask for your expert opinions,

Currently, I'm trying to build CNN-based eeg emotion recognition model with CWT, STFT, and fCWT respectively, and compare the performance of each model with different methods. However, I found that the performance of STFT is better than CWT (the parameters of both methods have been tuned to the highest performance on CNN). Therefore, would like to ask, if it is possible that using STFT on a narrow band frequency signal such as the Alpha band of an eeg signal will provide better performance than CWT ?

from fcwt.

fastlib avatar fastlib commented on August 24, 2024

I have opened a new issue for your new question about the performance of fCWT vs STFT. I will close this comment.

from fcwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.