Questions tagged [python]
Python is a high-level interpreted general programming language. Python has popular numerical and scientific libraries/packages, most notably numpy and scipy. The scipy.signal package is a powerful signal processing software collection. This tag covers the use of numpy, scipy, and other Python packages often used for SP computations.
1,374 questions
0
votes
2
answers
47
views
Why does the inverse Fourier transform return complex data?
My understanding is super basic, but as I understand it, the FFT takes in data in the time domain (amplitude over time) and returns complex data in the frequency domain (magnitude over frequency).
...
1
vote
0
answers
34
views
Confusion about energy preservation during griffin lim phase estimation
Currently I am trying to use griffin lim algorithm to generate waveform data from magnitude spectrogram input. In general everything works fine. However, I do not fully understand the effect of ...
1
vote
1
answer
91
views
Is it feasible to recover musical structure from EEG imagination data?
I am new to DSP, and I am currently working on a project whose full details I cannot disclose yet. Broadly speaking, the goal is to study the relationship between EEG signals and musical structure ...
3
votes
1
answer
96
views
Interpreting EEG spectrogram artifacts: Constant horizontal bands and periodic vertical lines after filtering
I am analyzing EEG data (CHB-MIT Scalp EEG) and generating spectrograms to visualize seizure transitions. I am trying to understand specific artifacts visible in my output to ensure my preprocessing ...
0
votes
1
answer
50
views
Why does Python skimage.transform.resize give different results from MATLAB imresize for the same array?
I'm trying to replicate MATLAB's imresize behavior in Python using skimage.transform.resize. Here's my test case:
Python
...
0
votes
0
answers
86
views
Deadlock issues with simultaneous USRP RX / TX using UHD Python API
I'm trying to set up simultaneous RX and TX using the two front-ends on a USRP B210 using the UHD Python API. This resource recommends using separate threads for RX and TX, and this one says that UHD ...
0
votes
0
answers
34
views
How do I generate proper QAM-M modulated passband and save it as WAV file?
I'm new to digital signal processing and would like to know how to make a QAM-M modem that generates proper passband signal and saves it as a WAV file.
The tool should allow me to specify the carrier ...
1
vote
0
answers
157
views
Why use Butterworth filter after MediaPipe smoothing (One-Euro) for pose landmarks?
I'm working on human pose estimation using MediaPipe (Pose or Face Mesh), which applies a LandmarkSmoothing filter (One-Euro style) to stabilize landmarks in real-time.
However, for offline post-...
0
votes
1
answer
237
views
How to detect repeating patterns in short audio clips (≈4 seconds) using Python and machine learning?
I’m working on a machine learning project where I need to classify very short audio clips (about 4 seconds each) into two categories:
repeating song: clips that contain a repeating musical pattern.
...
0
votes
0
answers
71
views
Help with Python assignment on signal processing
I'll try and detail as much as possible, please ask me if any info is missing in your opinions.
in this assigment i created the basic rect signal a[n] such that over the domain [-1000,1000] it's 1 ...
0
votes
0
answers
69
views
Classifying audio signals in real time using python
apologies for what is maybe a silly newbie question, but my problem is I have a real-time feed of audio tones from a detector, and I want to classify them into maybe 3 or 4 buckets, eg not interested, ...
3
votes
2
answers
233
views
Why FFT input has to be centered at x[0] from a algorithmic/mathematical point of view?
I am a beginner in FFT and, however, for my project, I have to process the autocovariance function and turn it into a spectral density. I am using Python for the calculations. If I center the ...
2
votes
1
answer
117
views
Help with Implementation of Extended Target Tracking via EKF and inverse-Wishart updates
I am trying to implement the research paper linked here: Converted Measurements Random Matrix Approach
to Extended Target Tracking Using X-band Marine
Radar Data
I’ve managed to code the prediction ...
0
votes
0
answers
27
views
No Doppler effect difference (5 Hz vs 50 Hz) on short-duration wideband fading?
I'm trying to apply Rayleigh fading (Jakes' model) to a wideband signal consisting of multiple subbands. The overall signal has a bandwidth of 250MHz, sampled at 500 MHz with a total signal length of ...
0
votes
0
answers
76
views
Is my Autocorrelation Function up to Par?
I am using python to play around with my own implementation of the ACF. I am aware of how the autocorrelation function can have quantization error due to integer values of lag being used to calculate ...