Questions tagged [algorithms]

Algorithm is a method expressed in a finite list of steps of well-defined instructions to process a signal.

Filter by
Sorted by
Tagged with
0 votes
1 answer
187 views

Non Radix-2 FFT Algorithms

I have 25,200 samples of data. My bandwidth is 12.6KHz and my Fs is 1.26MHz, I want to plot an Amplitude-Frequency Spectrum to display up to 100 different signals, that's on purpose (12,600 * 100 = 1,...
yarin Cohen's user avatar
0 votes
1 answer
127 views

Selecting subset of sequences so their sum has minimum variance?

I have a set of N real sequences and need to pick K sequences (with no replacement) such that their sum has the minimum variance. E.g. I have N=3 real sequences of length 5: ...
tkw954's user avatar
  • 203
13 votes
9 answers
3k views

Estimate Sine Frequency under White Noise — simple and effective method

Given a sinusoidal signal in white noise, how can one efficiently determine its frequency?
RyanRonald's user avatar
3 votes
1 answer
132 views

The power of signal processing when faced with hardware constraints

I am currently studying interferometry, but I have only just begun studying signal processing. I want to better understand the effect signal processing can have in maximising signal detection from ...
The Pointer's user avatar
2 votes
3 answers
366 views

Is there any deterministic downsampling algorithm for audio?

I was trying to use the scipy.decimate function provided in the library, but I had a question - I want a pre-processing algorithm to downsample audio in such a way ...
neel g's user avatar
  • 125
0 votes
1 answer
40 views

Multi-statelevel detection

I'm trying to develop an automated state-detection algorithm, basically expanding on MatLab's "statelevels" function to multiple (i.e. 3+) states, however I've hit a brick wall in trying to ...
SysEng91's user avatar
2 votes
3 answers
104 views

Identify which of the three signals is closest to a sinusoidal curve

I have some acceleration values from a sensor. These values are reported as x, y and z components of the acceleration. As can be seen in the attached figure, it is clear that the z signal has a clear ...
ashorj's user avatar
  • 21
0 votes
1 answer
648 views

ANSI S1.11.2004 Octave-Band Filter implementation

I am trying to implement some code to firstly generate an Octave-Band and Fractional-Octave Band filter. I have used MATLAB's octaveFilter method to generate compliant Class-1 and Class-0, 1/1 and 1/...
MDT's user avatar
  • 53
2 votes
1 answer
729 views

Digital integrator

I have been implementing a control software where I need to calculate a magnetic flux based on the measurement of the phase voltages of a three phase grid (basically three sinewaves) according to the ...
Steve's user avatar
  • 375
1 vote
2 answers
450 views

What is the RFFT and iRFFT complexity?

What is the RFFT and iRFFT complexity for 1D and 2D? Here is some starting point. 1D RFFT The FFT is $\mathcal{O}(N\log N)$ RFFT computes $N//2 + 1$ frequencies instead of $N$. Thus, RFFT is $\...
Eduardo Reis's user avatar
1 vote
0 answers
270 views

Removing feature matched outliers within same image using RANSAC

I'm a student working on a copy move forgery detection algorithm. I have a forged image. By far I have, Found keypoints and descriptors from the image Matched the descriptors using 3 Nearest ...
ssc134's user avatar
  • 11
1 vote
0 answers
39 views

Dynamic sampling of thermal images

My master’s dissertation subject is to analyze and implement an algorithm that would sample (store) thermal images from camera with different frequency rates to optimize database size and processing ...
Andre's user avatar
  • 11
1 vote
1 answer
207 views

How do I implement a footstep recognition algorithm? One that recognizes the start and end points of each footstep?

I have some time series data captured from a person's footsteps/strides (specifically, a person on rollerblades). It came from an IMU sensor placed on a person's boot. Each data point captures ...
Xin's user avatar
  • 11
0 votes
1 answer
49 views

What is the input dimension for LMS update algorithm

I just realized this forum existed, posted my question on the wrong forum. Sorry about the formatting, please don't hesitate to ask if any part of this post is unclear. This is my first post. I'm ...
Vincent Lu's user avatar
1 vote
1 answer
313 views

How do you map indices to twiddle factors in FFT

I am kinda lost on how to map my indices for each stage to my look up array of precomputed twiddle factors. For an $N=8$ point FFT i have $N/2$ twiddle factors in total: ${ [0] = W_8^0, [1] = W_8^1, [...
WDUK's user avatar
  • 139
1 vote
1 answer
57 views

Effectively extracting “real” data from a noisy dataset

This question was originally posed to Math SE. It was suggested that DSP SE would be more suitable. Background & Motivation: I have three lists of timestamps (UNIX timestamps, plus a subsecond ...
10GeV's user avatar
  • 123
4 votes
1 answer
410 views

FFT seems more accurate than MUSIC algorithm?

I created a signal with two sinusoids and added increasing amounts of random noise to it. The results of running the FFT and MUSIC on this signal are shown in the image below. Ignoring the fact that ...
Bertus101's user avatar
  • 141
1 vote
0 answers
85 views

If a function has slowly varying amplitude and phase what is the bandwidth of the amplitude and phase individually?

I am dealing with time histories that are narrow band with slowly varying amplitude and phase. I wish to extract the amplitude and phase but there is noise on the time history. An example of the type ...
Hugh's user avatar
  • 233
0 votes
1 answer
103 views

Why use both packet detection and symbol timing offset in WLAN 802.11?

In IEEE 802.11 Wlan, at the receiver side, we first use packets detection algorithm to detect the start of the packets, and then uses fine symbol timing estimation algorithm to find the start of the ...
ColinGuolin's user avatar
4 votes
3 answers
4k views

Why do we need DFT when we already have DTFT/DTFS?

We already have DTFT so why do we need DFT? Please don't write DTFT is used for discrete, aperiodic signal which transfers in the frequency domain to periodic and continuous, but in DFT is discrete ...
Nitish's user avatar
  • 179
0 votes
0 answers
55 views

DFT algorithm designed for a "sample-by-sample" senario

Suppose I have a system that wants to take an input signal (audio in this case) and wants to output a Discrete Fourier Transform of it in real time (ie every sample). My initial thought is that if you ...
DarthRubik's user avatar
0 votes
0 answers
81 views

Goertzel filter for non-equidistant sampling

We have a sensor that reports a new value asynchronously only when the value changes. Therefore, we receive samples at arbitrary time stamps. We basically receive value + timestamp of the measurement ...
user3207838's user avatar
-1 votes
1 answer
282 views

Wrong values calculating FFT with EEG Bands using Numpy

First of all I have to say I am very new to these matters. I am trying to apply FFT algorithm to some values obtained by EEG bands. I found the following code but I am unable to make it work correctly....
NeoChiri's user avatar
3 votes
1 answer
101 views

Minimize the Cost Function of Values of Vectors Based on Their Amplitude

I have two vectors $X = [x_1,x_2,x_3,x_4]$; and $Y = [y_1,y_2,y_3,y_4]$; I know that $|x_1|$ = $|y_1|$, and $|x_2|$ = $|y_2|$,... so on. it means the difference is only in the sign. it might be ...
Gze's user avatar
  • 640
3 votes
2 answers
2k views

MUltiple SIgnal Classification (MUSIC) Implementation

I have a linear 4 element antenna array currently in my design, I am able to obtain the I/Q data from each antenna. Now I am trying to implement the MUSIC algorithm to obtain the AoA (Angle of Arrival)...
radar101's user avatar
1 vote
1 answer
294 views

FFT algorithm gives wrong signs on my output numbers

I was told from another stack exchange (stackoverflow and computer science stack exchange) to post here - so hopefully now i can get some help from people who understand the algorithm, but if this is ...
WDUK's user avatar
  • 139
1 vote
0 answers
38 views

Is my implementation of Generlized Pencil-of-Function correct?

I have a time-series data that should be of the form $$ f(t) = \sum_nA_n(e^{\alpha_n t}+e^{-\alpha_n(T-t)});\;\alpha_n=\eta_n+i\omega_n;\;i=\sqrt{-1} $$ and I want to find parameters $A_n$, $\eta_n$, ...
firest's user avatar
  • 11
1 vote
0 answers
68 views

Asymmetry In The Mirroring Of An FFT Of A Sinusoidal Signal

I am trying to implement a Cooley-Tukey FFT algorithm in its iterative version. Specifically, I am implementing this Wikipedia pseudocode (please look at the section Data reordering, bit reversal, and ...
Guy Yafe's user avatar
  • 111
2 votes
1 answer
145 views

Clear examples of Fixed Point Algorithm Specification Block Diagram for FPGA Implementer

I have been working on converting a simple, floating point algorithm to fixed point and need to create a block diagram to help the guy who will implement this on an FPGA. As often is the case, the ...
rhz's user avatar
  • 375
3 votes
1 answer
236 views

Algorithm that Fills the White Holes Within the Character Image

I have this degraded image : Using paintbucket tool in Paint.NET Windows application, I fill the character image black. My ...
alyssaeliyah's user avatar
2 votes
1 answer
370 views

Discrete Wavelet Transform output: coefficients or FIR-filtered signals?

I have a theoretical question about the calculation of the Discrete Wavelet Transform, using MATLAB specifically. According to this video-tutorial on the MATLAB lagorithm: https://it.mathworks.com/...
EmThorns's user avatar
  • 393
0 votes
1 answer
38 views

Implementing an L-System conversion from R2 to R1 for symmetric, square matrices

I have been reading for some time about L-Systems, and specifically the Hilbert Space filling curve. I am interested in writing a function to convert upper-triangular matrix coordinates into an ...
Lewkrr's user avatar
  • 193
0 votes
1 answer
356 views

Upsampling implementation

I have problem with upsampling implementation in the following way: My code: ...
Alex's user avatar
  • 3
0 votes
0 answers
843 views

Mapping ring asteroids in Elite Dangerous by image processing

In the game Elite Dangerous, which is an online spaceflight-based sandbox game set in a procedurally-generated galaxy, one of the most profitable in-game occupations is mining commodities from ...
Monty Wild's user avatar
3 votes
1 answer
197 views

Algorithm to Count Zeros Outside Unit Circle for FIR Filter

As detailed in this post Can I set a constraint on the first tap of an FIR filter such that its inverse is stable? I show how Cauchy's Argument Principle can be used to easily confirm if an FIR filter ...
Dan Boschen's user avatar
  • 48.9k
1 vote
1 answer
278 views

What is the difference between time complexity and sample complexity?

What is the the difference between time complexity and sample complexity in the context of algorithm development? I'm currently studying the sparse Fourier transform and this idea of sample ...
Izzo's user avatar
  • 793
1 vote
0 answers
39 views

What is the technical term to join two signals with different phases?

there is a name for this: If I have two signals with a discontinuity, arrange the phases of one signal to fit the other and not see the discontinuity.
user94388's user avatar
3 votes
1 answer
286 views

Why does the griffin lim algorithm work?

the griffin lim algorithm works to reconstruct audio from a magnitude spectrogram, but i don't understand how reusing the same spectrogram every iteration with noise can produce decent sound How from ...
user94388's user avatar
1 vote
0 answers
359 views

Is there a FFT algorithm which is both in-place and constant geometry?

I work in crypto where the NTT (Number Theoretical Transform) which is just a FFT in finite fields is used. I wanted to know if there exists an implementation of the FFT which is both in-place and ...
Partha's user avatar
  • 11
0 votes
1 answer
108 views

RF signal identification algorithms

There exist many, many analog and digital data transmission protocols. It is often difficult to tell which mode one listens to and tedious to do for many signals. In Ham Radio, a Reed-Solomon ...
2080's user avatar
  • 69
1 vote
1 answer
60 views

How to compute an old style shore line drawing?

I wish to represent a shore line, old-style, as in the following image (city on the left, water on the right): UPDATE: new image for another example of what I'm after, namely the thin lines (given ...
Silverspur's user avatar
2 votes
1 answer
316 views

How CDMA receiver extract it's corresponding data from the receiving modulated & superposition-ed signal?

I have difficulty understanding CDMA. I have read all those PN/walsh code things, and understand orthogonality very well. But none of the resources I found demonstrate how a receiver end extract ...
somebody4's user avatar
  • 141
8 votes
3 answers
502 views

Best Approach to Rank Complex Magnitude Comparision Problem

This is in reference to the responses for an efficient algorithm for the comparison of bounded fixed point complex numbers at this post. Efficient Magnitude Comparison for Complex Numbers See the ...
Dan Boschen's user avatar
  • 48.9k
0 votes
1 answer
260 views

The selection of the amplitude of the signal, consisting of rectangular pulses, at different frequencies

I already asked a similar question, but did not receive an answer and did not find a solution, I want to make another attempt to get to the bottom of the truth. There is a signal consisting of ...
red15530's user avatar
19 votes
9 answers
3k views

Efficient Magnitude Comparison for Complex Numbers

Is there a more efficient algorithm (or what is the most efficient known algorithm) to select the larger of two complex numbers given as $I + jQ$ without having to compute the squared magnitude as $$...
Dan Boschen's user avatar
  • 48.9k
1 vote
1 answer
207 views

Separation of signals without loss of information about the signals themselves

There is a signal that contains: Rectangular pulses on frequency of 1 kHz Rectangular pulses on frequency of 1.4 kHz Other noises. Required: Separate 1kHz pulses from everything else and measure ...
red15530's user avatar
0 votes
0 answers
108 views

Finding Duplicate Pixel/Objects along Image seams

I have a seam of two photos joined by a seam alignment algorithm that on occasion generates duplicated pixels/objects/artifacts on both sides of the seam in the final, aligned photo. The images are ...
Loonuh's user avatar
  • 101
1 vote
2 answers
2k views

Understanding Voss-McCartney pink noise generation algorithm

I'm implementing the Voss-McCartney pink noise generation algorithm. If you follow the link above, you can read: from James McCartney 2 Sep 1999 21:00:30 -0600: The top end of the ...
Sylvain Leroux's user avatar
0 votes
2 answers
757 views

how a signal for which calculate RMS can be filtered and have a fast settling time?

i designed a sinusoidal pwm amplifier (3KHz to 20KHz) that regulates its output voltage reading the RMS value of output current. The RMS is obtained squaring the signal sampled by AD converter @...
franticSE's user avatar
5 votes
1 answer
721 views

One Too Many Non-Zero Eigenvalues in MUSIC DF Algorithm

I'm working on simulating the MUSIC algorithm in MATLAB to determine the azimuth angle of arrival of a simulated signal. My virtual antenna array consists of 4 antennas arranged in a plane. While I ...
OGBerglemir's user avatar

1
2
3 4 5
9