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,372 questions
0
votes
1
answer
38
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
33
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
29
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
83
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
130
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
66
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
55
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
184
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
75
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
23
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
67
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 ...
0
votes
2
answers
111
views
Getting the impulse response of a linear system given white gaussian noise as input and the system's output
I am having trouble with my implementation:
...
1
vote
0
answers
83
views
Resonance analysis of a driven harmonic oscillator: phase and amplitude extraction not working as expected
Some introductory remarks
I'm playing with a real-world harmonic oscillator (a torsion pendulum) of the form
$$
M\ddot x(t) + M\Gamma\dot x(t) + \frac{K}{M}x(t) = F_{\mathrm d}\cos(\omega_{\mathrm d}t)...
1
vote
0
answers
67
views
How to compute the power spectral density of a vector-valued process without mirroring the autocorrelation function?
I'm simulating a 2D Ornstein-Uhlenbeck process (Langevin equation for velocity), and I'm interested in computing the power spectral density (PSD) of the vector-valued velocity process.
Following the ...
0
votes
0
answers
51
views
Why does the reconstruction signal repeat and has artifacts near the switching points? [python assignment]
I have the discrete window signal $a\left[n\right]=\begin{cases}1 & \left|n\right|<100\\0 & 100\leq\left|n\right|\leq1000\end{cases}$ with the respective Fourier coefficients $a_k=\frac{\...