instruction
stringlengths
31
27k
I'm trying to implement the complex differentiation discriminator which is taken from Software-Defined Radio Using MATLAB, Simulink, and the RTL-SDR. The final result is $$s(t) = \frac{s_q'(t) s_i(t) - s_i'(t)s_q(t)}{s_i^2(t) + s_q^2(t)}$$ where $s_i(t)$ and $s_q(t)$ are in-phase and quadrature components. If we approx...
I am trying to create a synthethic speech dataset. A quick overview of the my process is: read wav apply stft do some stuff (ex. add noise, etc.) apply istft write wav Now, the .wav file that I am reading is 8kHz and its format is PCM-16. But when I apply stft and revert it back to its original form it is converted t...
I understand the code behind biquads, but I fail to understand how 5 coefficients in a biquadratic formula can isolate frequencies so precisely, especially considering it only takes the last two samples into consideration during the calculations. How do these biquad filters figure that stuff out? I am no mathematician ...
I'm having trouble in python with the scipy.signal method called welch (https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.welch.html), which estimates the frequency spectrum of a time signal, because it does not (at all) provide the same output as MATLAB's method called pwelch (https://www.mathworks.com...
I am trying to construct a time signal that needs to have a known magnitude response. The idea is to apply in Matlab/Octave an IFFT directly to the desired magnitude response: this corresponds to setting the real part equals to the magnitude response and the phase to zero. The resulting time signal will be non-causal (...
I would like to sparsely represent a linear function/ramp in the Fourier domain. In an attempt to improve the sparsity, I have zero padded it. With this padding, it is possible in the example I tried to represent the function with just one non-zero component in the Fourier domain. When I try to solve it as an inverse p...
I am new to this forum and I hope you guys can help me. I am sampling vibration signals when I pluck a string from an electric guitar using a max4466(https://www.adafruit.com/product/1063) mic glued to the headstock. I take 256 samples at 10kHz, but I expect that the vibration from the string to be less than 500Hz(http...
I tried everything including the Hough Transform with different inputs; Laplacian and Sobel and Canny edge detector were run on filtered image but cv2.HoughLinesP and cv2.HoughLines both give me wrong answers. For example, I am able to get the following image: However, I can't get the line from this image though Hough...
I am looking for some interesting and physically meaningful applications of different signal models. I am currently working with complex analytic signal model given below, but I couldn't come up with some applications of it, where it is meaningful to understand the model better. \begin{equation} x[n] = \sum_{k=1}^...
I have recently got my hands on a commercially available single channel EEG Sensor from Neurosky. This sensor acquire raw EEG signal at 512Hz from the frontal part of the human head and also process them on board level to various data such as - EEG Bands: high alpha, low alpha, high beta, low beta....and so on. Algori...
I have a signal that is a periodic concatenation of truncated Lorentzians ($\frac{1}{1+x^2}$), like so: The exact shape of the signal is unimportant I guess. I can approximate it with its first few Fourier components, so assume it is a single sine tone if it makes it any easier. Let us name this signal $x(t)$. The fre...
I am new to signal processing and I am reading about 1D phase unwrapping Here is the paper that I am reading. It refers to x as the signal but then it shows in the graph the axis are origina phase in radians againts sample index. So is x the signal or the phase function? Also it says that signal x whose amplitude excee...
I am using the colorless allpass-filter proposed by Schroeder Manfred R to create a reverberator. It consists of about 8 colorless allpass-filters connected in series, each with a different delay length. The gain ${g}$ of all the colorless allpass-filters is set to the desired reverberation time using the following equ...
hardware engineer here dipping his toes into software DSP and running into some issues. I'm attempting to demodulate in realtime a simple narrowband FM signal with samples from an RTL-SDR, and play the resulting audio through my speakers. My Sampling Approach The way my code is set up currently, I have a Python soundde...
I am trying to calculate the Hilbert transform using 3 different method: scipy.signal.hilbert function, time domain filter, and frequency domain filter. The test signal is $1/(1+t^{2})$, and its Hilbert transform is $t/(1+t^{2})$. In this result, the time domain filter is more accurate than scipy hilbert and frequency ...
By CWT, I mean the continuous wavelet transform. The usual padding schemes are zero padding, periodic padding, and decay padding. If I adopt the periodic padding, can I avoid the edge effects for the periodic signal?
I want to convert an audio file to a list of frequencies. We can apply an FFT on the audio to gain analysis of all the frequencies in a given audio sample, however, I want a list of frequencies as a whole from the audio such that if I play the frequencies in the time interval derived by the sampling rate, I would be ab...
If have an ofdm system with $N$ subcarriers, and sampling frequency $F_s$, that means that duration of each subcarrier is $T_s = \ {1/F_s}$ and the duration of whole symbol (which includes $N$ subcarriers) will be $T_{sym} = N/F_s$. I think till now, it's ok. Additionally, the $F_s$ is coming from $F_s = B*a$, where $B...
I have a program that can take a waveform, such as a sine wave or sawtooth wave and detune it with another waveform that is slightly sharper or flatter. It takes the frequency of said waveform and adds or subtracts the amount of hertz to detune from it depending on which threads are activated. If I have a sine wave at ...
The term pitch period appears in the book Speech and Language Processing by Daniel Jurafsy: As we just said, a pitch-synchronous algorithm is one in which we do something at each pitch period or epoch. For such algorithms it is important to have very accurate pitch markings: measurements of exactly where each pitch pu...
I have a couple of .wav sound files with very similar percussive signals of ~60ms duration. I can identify their onset times using libROSA's onset detection quite well. I would now like to extract the associated audio segments of ~60ms from the files using the onset times. Here is what I have done so far: import libros...
After the serial-to-parallel to break input bitstream into groupings we do the constellation mapping into values of phase/amplitude (or I, Q). For 64 sub-carriers this gives us 64 pairs of amplitude(n)/phase(n). an = amplitude(n) * cos(phase(n)) bn = amplitude(n) * sin(phase(n)) sub-carrier(n) = an * cos (n * delf * t)...
I'm currently in the process of porting a customer's algorithm for Matlab/Simulink to a DSP. In their algorithm, they perform a sliding DFT on a sinusoid and they use bin 1 to estimate the frequency. Their algorithm looks like this $y[n] = \sum_{k=0}^{N-1}{x[n-N+k+1]e^{\frac{-jk}{N}}}$ where x[n] is the input signal. T...
I am training a CNN to identify objects, and I believe the network will learn much faster if it can learn to focus on the pixels with the lowest value. One way to go about this would be to augment the images before training. What augmentations would work best in this case?
I am reading through an analysis of a system $$ Y(t) = \frac{d}{dt}X(t) + X(t) $$ and the frequency response $H(i\omega)$ is defined as $$ H(i\omega) = \frac{N(i\omega)}{Q(i\omega)} = \frac{1+i\omega}{1} $$ (In this case, $i$ is the imaginary number.) Is there a term for the functions $N$ and $Q$ used here? Additionall...
I am trying to plot cos(x) + isin(x) this is a 2 part question part 1 I am tryin to plot a signal cos(x) + i*sin(x) In python when i am trying to calculate np.sqrt(-1) for i,It is giving NaN Thats why i am not getting any plot of the data Sample_rate = 1000 Duration = 5 i = np.sqrt(-1) print(i) def generate_sine_and_c...
I am trying to understand the properties of chirp signals and their characteristics. I plotted the autocorrelation of a chirp signal in MATLAB. How can I compute the relation between the amplitude of the autocorrelated signal and the chirp parameters (time duration/bandwidth)? Thanks!
I have a question about magnitude of a spectrum. My task is to build the spectrum and make IFFT - the result waveform should have unity amplitude. For example: Create 2 arrays with Magnitudes and Phases; Fill the magnitudes array with noise (for example Perlin noise or white uniform noise); Fill the phases with noise ...
For an example, this is a figure I made from MATLAB, based on the poles and zeros, how can identify if it is a bandpass filter.
I am using the ARM CMSIS DSP library for a signal processing application. I find good filter performance when using tap counts that are in excess of 10% of the length of my data block. I understand that the tap count necessitates a delay in the output of the signal. Does that imply that the first TAP_COUNT values of th...
I have a set of 1-dimensional time-series, a subset of which contain either one or two peaks, and the remainder of which are pure noise. I've smoothed these data by taking a simple rolling average. My goal is to, for those series which contain a peak(s), obtain both the location and value of that peak(s). Ideally, I'd ...
I am wondering, can we use Radix 2 based computational-complexity calculation for any matrix multiplication whose size is $N$ x $N$ ?? where $N$ = $2^K$ and $K > 1$ is an integer ?? Or it can only used for FFT matrix? and if I have a unitary complex matrix whose size $2$x$2$ multiplied with a real vector $2$x$1$; in th...
I am implementing the Range Doppler Algorithm for a Synthetic Aperture Radar project and I am at the step where I must perform Range Cell Migration Correction. This step involves creating a sinc interpolator to correct the spread of the signals energy across range cells. See example image The interpolation is needed t...
I'm writing a script for sound-activated recording in Python using pyaudio. I want to trigger a 5s recording after a sound that is above a prespecified volume and frequency. I've managed to get the volume part working but don't know how to specify the minimum trigger frequency (I'd like it to trigger at frequencies abo...
I'm generating a sine wave and I want the second half of the signal to be in a different frequency. How do I find the phase shift I can apply to the second half so that the joining between the halves at a certain point in time is smooth? More specifically, I'm generating sound and want to avoid the clicking sound when ...
The conversion formula from a linear ratio r into dBFS units is the following: dBFS = 20 * log10(r). The value of r can be different things, but in my case, this is a RMS value divided by the maximum value. However, the linear to dB conversion formula is dB = 10 * log10(v), so I do not understand why the same formula i...
I have a video, whose frames I have extracted and require to work with. 16 bits and grayscale images. My task is to improve the quality of the images, by removing the noise + adding tone mapping and gamma. I want do this because I want to compare how it holds up against a specilized technique I found to do the same. I ...
I have to implement a function to get an accurate SNR value. For that, I would need a separate noise signal to get the signal power and noise power but I have only one noisy signal (a .wav file.) How can I extract noise from it or how can I find noise power from it?
We are trying to find loading and unloading patterns for time series created by tank fuel measurements. Our data after a low pass filter to cancel the noise are shown in the plot below: We are trying to securely find the fuel loadings that happen periodically and the value of the loading, i.e. 110 liters for example. ...
I have 2 kHz-sampled signal that I would like to downsample to 256 Hz. The original signal contains artifacts (= time intervals where data has too high/too low values. I know boundaries of the intervals where the artifacts happen). If I understand well standard approaches to downsampling (and software implementing them...
I currently have a set of intrinsic / extrinsic camera parameters, and am using them to project 3D world coordinates to the 2D image, using projection matrix $P = K[R | t]$. My problem is that this projects them onto the horizontal image, however I want the image to be in portrait. I can easily just rotate the image af...
In this figure from Fundamentals of Digital Communications by Madhow , pp 328 there is a comparison of a rate 1/3 turbo code with the shannon limit for rate 1/3 BPSK: Trying to understand the limit computation - I start with BPSK achieving 1 bits/sec/Hz over passband AWGN. Factoring in 1/3 rate coding this becomes 0.3...
So I am studying IIR filters and I came to read about limit-cycle oscillations in IIR filters. From what I understand that are two type of oscillations granularity limit-cycle: when signal levels become very low or constant for a period of time, the filter can lock into unstable modes and generate low-level output osc...
I am following a DSP course by Prof. Datta Roy which is available on you-tube. I have a concern on one of the ways he represents a digital ramp function in-terms of digital step functions. The digital step function is defined as: A ramp function can be drawn a follows. $X(n)$: It is represented on the lecture (He pe...
So I know that applying FFT on a time-domain signal, shows which frequency components exists and what amplitudes each frequency signal has. My question is, suppose the signal contains same frequency rate and amplitude, but different phases. Can we realize it from the results of FFT?
So when applying wavelet transform, we get a 2d plot. Each point in that 2d plot has a color, showing intensity of something. But I cannot understand if it is an amplitude or power?
I have 'raw' audio files recorded from an iPhone 12 Pro Max. I'd like to convert the raw 16 bit .wav amplitude to SPL. It's been a while since I was doing this kind of stuff hands-on and I was never an expert, but I think what I need to know is 1) the ADC input range and 2) the microphone sensitivity (mv/Pa). Are these...
I have a time serie dataset and want to train a CNN-LSTM model to predict as well as detect outliers. How can I use CNN to filter the signal and extract features from specific frequency band?
If there were a mobile IoT device needing only a low data rate and not needing low latency, would NB-IoT be a good connectivity option? Would LTE-M be better? ‘Mobile’ is key here. A device that will physically move many kilometres. (Assuming both LTE-M and NB-IoT were available in the relevant geographies, and that th...
I have a non-periodic signal. I apply a first order linear IIR filter on it. The filter will introduce phase shift to the signal that will appear as a total time delay. Is there a formula I can use to calculate the net time delay on the signal? such that the maximum correlation is achieved when the signal is shifted ba...
I am working on a beginner kind of project, and after processing some data and plotting a lot of bispectrum plots, I found out that a lot of them had peaks on the diagonal fx = fy (where fi denotes frequency along the i-axis). An example graph is the following: That's what we call self QPC but I don't really understan...
Given a convolution integral with gaussian kernel $$ g(y) =\int_a^b\varphi(y-x)f(x)dx=\int_{-\infty}^{+\infty}\varphi(y-x)f(x)\mathbb{I}_{[a,b]}(x)dx $$ where $\varphi(x)= \frac{1}{\sqrt{2\pi}}\exp{\left(-\frac{x^2}{2}\right)}$ a unidimensional gaussian function $f:x\in[a,b] \to \Bbb R$ a known function Remark: Afte...
My education and career has been focused in mechanical and materials science; sorry if the following is well known, but I haven't been able to find the appropriate SEO terms. Wanting input to further study the proposed method or other, better approaches. Have a project in which a mobile DAQ system is being developed. T...
Tldr: Numpy FFT creates non uniform output when output is wanted to be uniform. I want the output to be a uniform corona. I am trying to eventually run a Gerchberg-Saxton phase retrieval algorithm. I have been trying to make sure that I understand how fft works in numpy. I have used the fftshift to create the correct l...
I am learning wavelet transform, below image is an example I have that uses haar wavelet for decomposing the simple haar wavelet like signal. i know that the coefficients at each level are results of the convolution of the signal and the wavelet, the magnitude represents the similarities between them. I am not certain ...
Okay, so I am aware of the math behind perfect reconstruction in filterbank and wavelet theory when there is half-band symmetry. But I don't understand, when we have the computational power to do decent DSP to modulate the binary signal into the baseband IQ signal, why anyone puts up with any crossover from one FDM ch...
I noticed that there are many ways to relate the scale factor of wavelets to some characteristic frequency, such as the peak frequency, the central instantaneous frequency, and so on(plz see section 2.8 of Aguiar-Conraria2014 for more details). However, I was puzzled to choose which one as the Fourier frequency( or per...
I am processing the data from serial. I have to filter the data to remove ripples. I have tried with the following code. However, I can't get the expected results. Suggest me which type of filter I have to use in order to get expected results? def graph_plot(): plt.xlabel("samples") plt.ylabel("data") plt.x...
In my assignment I have been given recorded temperature over a period of time (193 values) and the impulse response (5 values with n=0 corresponding to the middle value.) Data: data.csv h = [1/16 4/16 6/16 4/16 1/16] given question: This is what I need to do for deblurring -> take Fourier transformation of x and h > F...
The block diagram below represents a linear modulation system operating at the frequency of $1000 Hz$, $f_C = 1000 Hz$, transmitting the message $m(t) = 2\cos(400πt)$ At point B, i got the signal: $$cos(1600 \pi t) + cos(2400 \pi t)$$ At point C, I got the following signal: $$\frac{1}{2} (\cos(380 π t) + \cos(420 π t)...
I am not sure if this is the correct place to ask this question but it looked like the most fitting SE site. I study software engineering and I am taking a course about networking, where synchronization came up. I am not really capable of understanding the difference between these two synchronization types, it seems to...
I apologize if this is the wrong place to post this question. I have 2 potentiometer that are connected to a shaft. 1st pot. is connected straight to the shaft. 2nd pot. is connected through a gear set [5:1]. When the shaft do a full circle 360°, the 1st pot. Make a full circle and the 2nd pot. Make 5 circles. Both pot...
As a follow up to Generate the Matrix Form of 2D Convolution Kernel, could someone explain how to generate the matrix form of a 1D convolution kernel? How different convolutions shapes are handled? Are there cases where it is better to implement and apply 1D convolution using the matrix form?
Let us assume a finite, aperiodic signal $x[n]$ upon which we perform DFT n times, as such: DFT{DFT{DFT{...{DFT{$x[n]$}}...} How can we calculate this directly instead of applying the DFT n times?
I have a signal that is sampled at 2KHz. The frequency band of interest is from 1/60 Hz to 1 Hz, and I want the final signal to be downsampled to 10 Hz. What is the best way to do this? I read that narrow band filtering can be unstable? The way that I am doing now is to bandpass my signal (1/60 Hz to 1 Hz) using the 2n...
I am trying to measure an RIR using my laptop and a JBL Flip 5 speaker. I have tried, both, the Matlab tool and a python code shared on gihub. My final goal is to compare with the image method and analyzing some differences. In both cases, I am getting a very late direct path with $f_s=44100KHz$. The image of the Matla...
I was reading this research paper titled 'The generalized Correlation Method for Estimation of Time Delay' by C. Knapp and G.C. Carter. They develop an ML estimator and in the introduction mention that 'The time shift causing the peak is an estimate of the true delay D'. I did not understand why specifically the peak o...
I am studying a course in signalanalysis and have run into som trouble with a exercise. I am to dimension the circuit below in such a way that the DC-amplification is 1 and that the frequencies $\omega=\frac {\pi}{2}$ and $\omega=\pi$ is completely filtered out. So i figured some of this out I think. I wrote this syst...
Im writing an NLMS MATLAB program to remove powerline noise from ecg signals. I sweep through tap widths and learning rates which get the best SNR values. Some of the combinations produce great SNRs but really attenuate the signal. For example, the figure below shows the noisey signal with the filtered signal (top) the...
I would like to solve the following Image Deconvolution equation by ADMM. $$\mathbf { \min\frac{1}{2}\Vert{Cx-b}\Vert_2^2+\Vert w\circ (D x)\Vert_1 \tag 1}$$ Where, $x$ is a vector of unknown pixel values, $b$ is measurements,and $C$ is the point spread kernel, $D$ is the differential operator , $\circ$ is the element-...
I've extracted SCADA data recording (every 2 seconds) the DC current applied from a DC power supply (Sorenson SGA) during a steady state (current control mode) electrolysis trial. To report the average applied current over the trial, should I use RMS, or is the mean appropriate? It's a pretty noisy signal (SNR of 2.4) ...
I am currently trying to implement a C++ program to calculate digital filter coefficients using a Chebyshev Type II filter design technique. The text I am using to understand the theory of the technique is chapter 4.9, section 3 from Rabiner and Gold (Rabiner, Lawrence R., and Bernard Gold. Theory and Application of Di...
I am generating a linear chirp in C code with a f0 , f1 and T. What is the most efficient way to solve where the zero crossings appear? Thanks
I'm working on a pitch modification plugin involving resampling, and want the quality to be as high as possible. I currently use windowed sinc interpolation and lowpass filter where required. I noticed some pitch modification plugins offer an "oversampling" option, but I don't understand its purpose. To me it seems ove...
I'm working on Remote-Procedure Call (RPC) server that processes incoming streams of data from clients, and looking for a way to set a limit on the number of simultaneous streams allowed. There is some bottleneck in the system (such as CPU time or NIC bandwidth), but it's hard to predict up front how many streams are n...
I am having trouble reconciling my derivation of the phase response of an N-th order all-pass filter with those I am finding in the literature, and I figured someone here could help me. Real Version: An $N$-th order real coefficient all-pass filter's transfer function is given by [1,2]: $$ H_{A}(z) = z^{-N} \frac{A(z^...
I am working on an accelerometer with sampling rate of 26.7 kHz using which I intend to calculate FFT. Hence the FMax = (26.7/2.56 = 10.4kHz). As I am performing this on a microcontroller, I have a limitation that I can only compute 2048-point FFT where my LOR(Lines of Resolution) is 2048/2.56 = 800. Now the problem i...
I was looking at the source code for Matlab's tf2ss function and I noticed that it parses the numerator assuming that it is a matrix, not a vector. So I looked at the documentation (https://au.mathworks.com/help/signal/ref/tf2ss.html?searchHighlight=tf2ss&s_tid=srchtitle) and find the example: $$ H(s) = \frac{\begin{bm...
I have a variable in time and I calculated its mean which is 9.5. I have done the Fourier Transform of this variable, using the FFT in matlab. I would like to consider only a range of frequencies, so I substituted with zero all the frequencies that I have excluded. After this I did the ifft of this, obtaining again a v...
I'm an absolutely newbie to signal processing. I'm trying to classify EMG signals which are very noisy (decibel values are more than -70 dB in some cases). After applying EMD technique these values are improved to -30 dB to -40 dB. My question is : I want to classify these EMG signals. It's a binary classification pro...
I am looking for alternative to Meyer window functions (Section 4.1) from which one can define a curvelet system. Are there any similar window functions which would be as easy to implement?
I am trying to Frequency modulate a sine signal using Python. I have written the following code that should do it: def generateSignalFM(time_vector,data): TWO_PI = 2 * np.pi fc = 100 b = 15 data = np.sin(TWO_PI * 1 * time_vector) fm = np.sin(TWO_PI * (fc + b * data) * time_vector) plot_graph2d(...
Context: In the review article [1], the authors explain that we can model the frequency response of an FIR notch filter using Bernstein polynomials. The paper shows the details, but at the end of it, they come up with the frequency response as: $$ H(\omega) = \sum_{i=0}^{n} a_{i} \left( \text{cos}(\omega) \right)^{i} $...
//PROBLEM I'm trying to filter EEG trials from an array in which each trail has dimensions [8x125] = [number of channels x samples@250Hz], but the resulting signal looks static and wrong. Why is this happening? How can I improve my filtered signal quality? See below how the original signal and its PSD are and how the s...
Given $$ \begin{cases} &f_0(x)=1 \\ &f_{n+1}(x)= (\varphi*(f\mathbb{I}_{[a_n,b_n]}))(x)=\int_{-\infty}^{+\infty}\varphi(x-t)f_n(t)\mathbb{I}_{[a_n,b_n]}(t)dt = \int_{a_n}^{b_n}\varphi(x-t)f_n(t)dt \quad n = 0,...,N-1 \\ \end{cases} $$ with $\{a_n\}_{n=1,...,N},\{b_n\}_{n=1,...,N} \in \Bbb R$ and $\varphi(x)$ the stand...
If I am digitally capturing an audio signal from an analog source and I know I will want some analog effects applied, is it better to use them on the analog signal before doing the ADC, or should I opt for as clean as a digital signal as possible and then pass that signal through the both the analog and digital effects...
I was learning about convolution and how filtering helps us to detect an edge in an image;however I still cannot not understand how the convolution process in the image below does this. I understand how the last 4x4 matrix is created(the math operations);however I do not understand why the resultant matrix indicates t...
On page 30, of the book Fundamentals of LTE by Arunabha Ghosh et al. it is written: This allows broadcast signals from different cells to combine over the air to significantly enhance the received signal power, thereby enabling higher data rate broadcast transmissions for a given transmit power. How does higher recei...
I am currently trying to compare the amplitude vs time data between two different microphone readings (.wav files of inhales and exhales) and detect which reading produced a louder sound, on average. I was wondering what the best methodology for this would be, and if there is a good mathematical way to go about this, i...
It is possible to filter an image by using a 2d DFT. This will result in periodic boundary conditions. Now, is it possible to use the DFT to filter an image, while maintaining predefined boundary conditions (either Dirichlet or Neumann type). I could implement a filter directly in the spatial domain. For example, solvi...
My main confusion comes from the fact that polyphase decomposition and filterbanks and usually discussed one after the other. How are they related? Specifically, is polyphase a separation in the time domain of a signal(divide signal into subsequences) and filterbanks can achieve separation in frequency (divide signal i...
Say I have a signal that's the sum of only a few sine/cosine waves, and some noise, which has been measured at random times. I would like to find the frequencies of the waves. With this goal in-mind, what are the trade-offs between these two methods: Calculate the Lomb-Scargle periodogram, where the positions of the p...
I have a signal, which was measured for 14.4 minutes (= 864 seconds). There are 192 measurements, so one measurement was done in every 4.5 seconds, which results in a 0.22 Hz sampling frequency if I am not mistaken. As far as I know, the highest frequency that could be seen on a spectrogram of this data should be 0.11 ...
The power spectral density (PSD) of the given input signal $x[n]$ is computed as follows: close all;clear;clc n = 8; F = dftmtx(n); invF = 1/n*F'; rng default x = randn(100*n,1); xx = buffer(x,n,n-1); xx = xx(:, n:end); XX = fft(xx, n); phixx = mean(XX.*conj(XX),2)/n; phixx = phixx.'; Then, the phixx is phixx = ...
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 some hardware device. My conceptualisation of this is that, when it comes to 'sensing' anything, we must start with hardwar...
I am working on a project to sense human occupancy in a room. For that, I have been recommended to use the CSI signals from the WIFI. I have followed https://github.com/StevenMHernandez/ESP32-CSI-Tool to get the CSI data. I have got the following CSI Matrix, [112 -128 6 0 0 0 0 0 0 0 0 0 3 9 2 10 1 12 0 14 1 14 1 16 2 ...
How can the convergence of an LMS filter be accelerated? Can we do better than the Vanilla algorithm?
There is sinusoidally controlled signal, which other than being noisy, can change values for amplitude, frequency, phase and offset. At every new sample a new sine is fitted for the last N samples. These fitted signals might be different due to noise or due to the signal changing value. To filter it, I would like to us...
How to solve a 1D Least Squares with Total Variation Regularization? I know gradient based methods, I wonder how much faster / efficient I can get.
Question edited based on first answer which raised a lot of good points about what problem I'm trying to solve. Also reordered some things to stick context of how I did this with FIR so far at the end, to make it more coherent. Sorry if I'm not entirely sure what, directly, is the right question to ask. The cone is a...