Questions tagged [signal-processing]

AKA digital signal processing (DSP). A signal is an information-carrying changing attribute of an entity, but in the digital sense, 'signal' refers to either received or transmitted streams/blocks of data, commonly representing real-world quantities such as audio levels, luminosity, pressure etc over time or distance. 'Processing' is the act of altering, analyzing or characterizing the data to retrieve/modify information inherent in the signal in question.

A signal is an information-carrying changing attribute of an entity, but in the digital sense, 'signal' refers to either received or transmitted streams/blocks of data, commonly representing real-world quantities such as audio levels, luminosity, pressure etc over time or distance.

These real-world quantities usually comes as analogue signals that are being sampled and quantized into a digital format, i.e. a sequence or higher-dimensional array of discrete numbers.

'Processing' is the act of altering, analyzing or characterizing the data to retrieve/modify information inherent in the signal in question.

NOTE: questions not related to the programming of signal processing implementations but the signal processing theory behind are off-topic for Stack Overflow and should be posted to the appropriate sister site, Signal Processing SE.

Common topics include:

  • digital filtering;
  • audio processing;
  • image processing;
  • sampling;
  • data compression;
  • spectral analysis;

Analysis tools commonly in practice are the Discrete Fourier Transform (DFT), especially its fast implementations (FFT); and wavelet transforms.

Common softwares used in the field include ; ; , especially with /; ///; ; and various languages.

5814 questions
2
votes
0 answers

calculate crosscorrelation using fft (JTransforms)

I'm trying to find a reference audiosignal inside an audiorecording. To do this I use crosscorrelation between the two signals (the reference signal is a linear chirp that goes from 20kHz to 21kHz in .1s so it should have pretty decent…
TropicalSpore
  • 119
  • 2
  • 9
2
votes
1 answer

FIR filter length is the intercept included as a coefficient?-- Matlab

I have some confusion about the terminologies and simulation of an FIR system. I shall appreciate help in rectifying my mistakes and informing what is correct. Assuming a FIR filter with coefficient array A=[1,c2,c3,c4]. The number of elements are L…
Srishti M
  • 533
  • 4
  • 21
2
votes
1 answer

Matlab : Convolution and deconvolution results weird

Data x is input to an autoregreesive model (AR) model. The output of the AR model is corrupted with Additive White Gaussian Noise at SNR = 30 dB. The observations are denoted by noisy_y. Let there be close estimates h_hat of the AR model (these are…
SKM
  • 959
  • 2
  • 19
  • 45
2
votes
3 answers

Bluepy Installation Error

I am trying to install bluepy 1.0.5. However, I get receiving error below. Any idea how can i solve it? (I am using Mac OS X El Capitan) 40:449: execution error: The directory '/Users/isozyesil/Library/Caches/pip/http' or its parent directory is…
2
votes
2 answers

Error with Padlen in signal.filtfilt in Python

I am working with library "scipy.signal" in Python and I have the next code: from scipy import signal b = [ 0.001016 0.00507999 0.01015998 0.01015998 0.00507999 0.001016 ] a = [ 1. -3.0820186 4.04351697 -2.76126457 0.97291013…
jartymcfly
  • 1,945
  • 9
  • 30
  • 51
2
votes
2 answers

Seperation of instruments' audios from a single channel non-MIDI musical file

My friend Prasad Raghavendra and me, were trying to experiment with Machine Learning on audio. We were doing it to learn and to explore interesting possibilities at any upcoming get-togethers. I decided to see how deep learning or any machine…
2
votes
1 answer

Dynamic window forming in efficient way in MATLAB

Can someone help me to provide an efficient way or help me to perform the provide code to do make same results in minimal possible steps. I shall be grateful to you. I have an Original Array: A = [1 1 1 4.3 4.5 4 4.3 3 1 0 0 2 6.2 6.3 6 6.2 7.4 8…
Peter
  • 161
  • 1
  • 11
2
votes
2 answers

equivalence scipy.signal welch to matlab pwelch

I have the following MATLAB code to compute the PSD of a signal: x = linspace(0, 10, 100001); dt = x(2) - x(1); Fs = 1 / dt; a1 = 1; f1 = 500; a2 = 10; f2 = 2000; y = a1 * sin(2*pi*f1*x) + a2 *…
Alex__S12
  • 135
  • 1
  • 9
2
votes
2 answers

Why does zero padding in Fourier domain lead to an inverse transform which is complex?

If I start off with a signal which has only real values, performing an fft and ifft returns the exact signal back with no complex entries as expected. But if I pad the fft with zeros to obtain interpolated values in the time domain, the inverse fft…
Sachu17
  • 61
  • 5
2
votes
1 answer

Python + Scipy: How to set the time frame for a spectrogram?

I'm trying to calculate the spectrogram for an audio signal using scipy.signal.spectrogram. As a project specification it is needed that the time frames be spaced 20ms from each other, but I can't find a way to set it. The maximum value I was able…
Ramon Balthazar
  • 3,907
  • 3
  • 25
  • 34
2
votes
1 answer

How do I scale an FFT-based cross-correlation such that its peak is equal to Pearson's rho

Description of the problem FFT can be used to compute cross-correlation between two signals or images. To determine the delay or lag between two signals A and B, it suffices to locate the peak of: IFFT(FFT(A)*conjugate(FFT(B))) However, the…
rjonnal
  • 1,137
  • 7
  • 17
2
votes
1 answer

Determine how long a signal is above a predefined limit

I have two large lists t and y and I want to determine in a performant way at which times and how long the data in y exceeds a predefined limit, i.e. >=limit. The problem may be illustrated with the following sample data: t =…
Rickson
  • 1,040
  • 2
  • 16
  • 40
2
votes
1 answer

Smoothing a series of weighted values in numpy/pandas

I have a pandas DataFrame of measurements and corresponding weights: df = pd.DataFrame({'x': np.random.randn(1000), 'w': np.random.rand(1000)}) I want to smooth the measurement values (x) while taking the element-wise weights (w) into account. This…
Eric Talevich
  • 403
  • 3
  • 7
2
votes
1 answer

Undefined function 'minus' for input argument of type 'iddata'

This is a followup to a previous issue I was having. I want to give an offset to a signal then add some delay in it and calculate RMSE for that but when taking difference I am having the following issue: I would like to ask the following…
Peter
  • 161
  • 1
  • 11
2
votes
1 answer

scipy.signal.find_peaks_cwt returns additional points which are not peaks

I am using the scipy peakfinder scipy.signal.find_peaks_cwt to find peaks in a signal. All peaks are found reliably, but I always get additional results (so far all of them were at the end of the signal) that are not peaks. I am wondering why this…
Johannes
  • 3,300
  • 2
  • 20
  • 35