TorchDSP / torchsig

TorchSig is an open-source signal processing machine learning toolkit based on the PyTorch data handling pipeline.
MIT License
155 stars 37 forks source link

Some signals seem to be divided into two parts #233

Closed slightY closed 3 weeks ago

slightY commented 4 months ago

There is a situation where the signal is divided into two parts in some time-frequency images. 1714401012448

I'm not sure if the model will recognize it as two signals, but I think they belong to the same signal I would like to ask why such a situation appears in the time-frequency image.

MattCarrickPL commented 3 weeks ago

The issue is that we are trying to simulate a signal at the sampling rate boundary and to avoid all aliasing an ideal LPF is needed but that's impossible to build. So there will always be some energy that wraps around the -fs/2 and +fs/2 boundary. However, we've added in better filtering to cover this exact case in 0.5.2, so it's been addressed and I'm closing out the issue.