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
2 answers

Detect gradual increase then decrease in slightly noisy data

I have data thats not too noisy and I am trying to detect a pattern where it gradually increases then decreases in a short period of time (20 ticks? it should be roughly similar per session but can vary slightly between different sessions). This…
Ta946
  • 1,342
  • 12
  • 19
2
votes
2 answers

If we take STFT of a single sinusoid, and plot the value corresponding to carrier frequency in real imaginary plane, how many points should it be?

I created a sinusoid with frequency 550Hz that goes for 1 second fs=44100; Duration=1; %second Len=Duration * fs; %length of sinusoid t=(0:Len-1)/fs; x=sin(2*pi*550*t); for the purpose of exploring and learning, I have decided to take the short…
Atra Es
  • 25
  • 4
2
votes
4 answers

What is wrong with my low pass filter?

I have an array of int samples ranging from 32766 to -32767. In part of trying to create an envelope detector I've written a low pass filter, but it doesn't seem to be doing the job. Please keep in mind I'm trying to filter an entire array in one…
Eric Brotto
  • 53,471
  • 32
  • 129
  • 174
2
votes
1 answer

Calculating SNR using PSD of captured signal and noise

I have captured both a transmitted signal and when there is no transmission (i.e. noise only). I would like to calculate the SNR of the signal. I would like to make sure the following GNURadio flowgraph is not wrong: In summary, after the PSD of…
Faith
  • 37
  • 9
2
votes
1 answer

Spectrum computed with Matlab FFT does not give a consistent result for different lengths of sample (same number of points but Fs different)?

I would like to plot profile of rugosity (from AFM measurements) but there are still this that I misunderstand regarding the FFT (especially in Matlab documentation). I want to compare two measurements, a.k.a. two rugosity profiles. They were done…
LeChat
  • 466
  • 3
  • 18
2
votes
1 answer

How to find gain g from z,p,k in Python

Matlab zp2sos returns [sos, g] but in python equivalent library zpk2sos returns only sos. How to calculate gain g in python. ts=(length(data1)/128); Wp = [1 4]/(fs/2); Ws = [0.5 4.5]/(fs/2); Rp = 3; Rs = 40; [n,Wn] = buttord(Wp,Ws,Rp,Rs); [z, p, k]…
MD. Khairul Basar
  • 4,976
  • 14
  • 41
  • 59
2
votes
1 answer

plotting the spectrum of a wavfile in pyqtgraph using scipy.signal.spectrogram

I have a PyQt plus pyqtgraph program for music and speech analysis and I want to plot the spectrum of a wav file (calculated using scipy python package). I can do it in matplotlib but due to matplotlib's performance I need to switch to pyqtgraph but…
Arraiz
  • 77
  • 1
  • 8
2
votes
1 answer

Python detrend 3d dataset with NaNs

I am trying to de-trend my dataset of size 480x2040 = close to 1,000,000 pixels. I have 17 timesteps in this series (years) however I want to move to daily timesteps at some point. This code works, however runs way way way too slow to be functional.…
Ocean Scientist
  • 411
  • 4
  • 16
2
votes
2 answers

Smoothly concatenating sine waves from input

Last month, I posted this question about how to concatenate sine waves WHEN you are generating them, but now I've faced a different situation where I will generate a sine and make it continue from the end of another sine I did not generate. My…
Nicolas Costa
  • 85
  • 1
  • 7
2
votes
1 answer

Parameters to control the size of a spectrogram

I am trying to get the spectrogram as described by the following instruction. Each audio segment has duration of 5s. Frames with equal size are extracted from the audio (with overlap between the consecutive frames), and each of the frame…
Raven Cheuk
  • 2,903
  • 4
  • 27
  • 54
2
votes
0 answers

External assembler function for digital signal processor

I need to create external function on TMS320C5515 Fixed-Point Digital Signal Processor around BFXTR command. I need to write some value directly into memory. I tried something like this: .def _bfxtr _bfxtr: PSH mmap(ST0_55) PSHBOTH XCDP …
Zhurik
  • 126
  • 3
  • 13
2
votes
1 answer

Fast-fourier transform for low-frequency signals in the WebAudio API / javascript

I have a single-channel wave coming in at an 8000 Hz sampling rate. I need to analyze frequencies that are between 5 Hz and 300 Hz in real-time, with emphasis on signals from 10 to 60 Hz. My thought initially is to run the 8000 Hz sample into a…
Kevin
  • 61
  • 5
2
votes
3 answers

Signal processing: FFT overlap processing resources

Are there any good (if possible scientific) resources available (web or books) about overlap processing. I am not that interested in the effects of using overlap processing and windows when analyzing a signal, since the requirements are different.…
st-h
  • 2,444
  • 6
  • 37
  • 60
2
votes
1 answer

Help with IIR Comb Filter

Reverb.m #define D 1000 OSStatus MusicPlayerCallback( void* inRefCon, AudioUnitRenderActionFlags * ioActionFlags, const AudioTimeStamp * inTimeStamp, UInt32 inBusNumber, UInt32…
Cocell
  • 159
  • 2
  • 10
2
votes
0 answers

Tensorflow: Fixed point quntization for a embedded DSP

Apologies for my newbie question. From documents like these I understand the advantages of using 8bit numbers to save on memory and increase the performance for very small impact on accuracy: https://www.tensorflow.org/performance/quantization Other…
Anton Krug
  • 1,555
  • 2
  • 19
  • 32