I want to transform a list of numbers using Synchrosqueezing transformer :
The problem is I want convert this list “t” by “ssq_cwt(xo)” to another list with same lentgh.
import numpy as np
from array import array
import matplotlib.pyplot as plt
from ssqueezepy import ssq_cwt, ssq_stft
#%%# Define signal ####################################
N = 8
t = [1, 7, 0, 6,1, 9, 0, 5]
t = np.asarray(t)
xo = np.cos(2 * np.pi * 2 * (np.exp(t / 2.2) - 1))
xo += xo[::-1] # add self reflected
x = xo + np.sqrt(2) * np.random.randn(N)
#%%# CWT + SSQ CWT ####################################
Twxo, Wxo, *_ = ssq_cwt(xo)
New contributor
laila is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.