OverLordGoldDragon / ssqueezepy

Synchrosqueezing, wavelet transforms, and time-frequency analysis in Python
MIT License
618 stars 96 forks source link

_cwt and _ssq_cwt freq and shapes #48

Closed Bulbille closed 2 years ago

Bulbille commented 2 years ago

_cwt freq is of shape (N,1) _ssq_cwt freq is of shape (N) _ssq_cwt scales is of shape (N,1)

Everything should be of the same shape

OverLordGoldDragon commented 2 years ago

Hello,

I've not seen a use case for this. Could you describe it? Also cwt returns scales rather than ssq_freqs.

Bulbille commented 2 years ago

My bad, it is indeed _cwt scales of shape (N,1). It is then consistent with _ssq_cwt scales. Though it seems weird that freq is a (N) array and scales a (N,1) array.

OverLordGoldDragon commented 2 years ago

Fair point, changed.