I am reading this paper to learning basic concepts of dsp and I want to reproduce the following scalogram of a test signal (fig 4.2 of the paper):
It has been produced from the discretization of the formula: $$ \frac{1}{s} \int_{0}^{\Omega} f(t) \overline{g\left(\frac{t-\tau}{s}\right)} d t $$
Where $g(t)$ is the wavelet:$$ g(t)=w^{-1} e^{-\pi(t / w)^{2}} e^{i 2 \pi \eta t / w} $$
And $f(t)$ is the function: $$ \begin{array}{l} \sin \left(2 \pi \nu_{1} t\right) e^{-\pi[(t-0.2) / 0.1]^{10}} \\ \quad+\left[\sin \left(2 \pi \nu_{1} t\right)+2 \cos \left(2 \pi \nu_{2} t\right)\right] e^{-\pi[(t-0.5) / 0.1]^{10}} \\ \quad+\left[2 \sin \left(2 \pi \nu_{2} t\right)-\cos \left(2 \pi \nu_{3} t\right)\right] e^{-\pi[(t-0.8) / 0.1]^{10}} \end{array} $$
I have tried to reproduce them using the function scipy.signal.ctw()
. I have coded $g(t)$ as a function of t and $\omega $. Nevertheless, I get only non-zero coefficients for the last part of the wave, I guess that I could have something wrong. How can I compute the scalogram using scipy.signal.ctw()
?