instruction
stringlengths
31
27k
I'm writing a software analogue synth. I have been using the Overlap-add method to cheaply implement a low-pass filter using FFT. My low-pass filter has had a constant impulse response; a constant cutoff frequency. Now I'd like to make it possible to vary the cut-off frequency while a note is playing (this is a common ...
We know the below, $$ \mathscr{F}\big\{x(t)\big\}=X(f) \tag{1} $$ $$ \mathscr{F}\big\{x(-t)\big\}=X(-f) \tag{2} $$ $$ \mathscr{F}\big\{x^*(t)\big\}=X^*(-f) \tag{3} $$ Now, if for some signal $$ x(-t)=x^*(t) \tag{4} $$ Then, is it safe to assume the following? $$ X(-f)=X^*(-f) \tag{5} $$ or does it depend on the type o...
I have this matrix The following points R1 = (1,7) = 0 R2 = (3,2) = 6 R3 = (5,5) = 3 R4 = (7,3) = 1 And using this equation |g(seedi) – g(pixel)| < T for T=1 And this is the solution for threshold = 1 I don't understand why all the ones for example, belong to R1 = α Based on the equation we have |0 - 1| < 1, which m...
I want to make a bandpass filter for an IQ signal recorded from an Software Defined Radio with center frequency "Fc" & sampling frequency "Fs". For futhur analysis I wanted to focus upon signal received between a fixed frequency range & filter out rest frequencies. I generated "sinc" funtion using Python Scipy firwin t...
I want to determine optimal initial states for a FIR/IIR filter to get rid of oscillations and shifts at the initial interval. I've found that these initial states depend on filter type in the following way (up to a constant): for k=1:order % (Direct Form II Transposed) z_hp(k) = sum(1*b(1+k:end)- 0*a(1+k:end)); % ...
I am looking for a measure to report how much a signal has corrupted by passing a medium. Suppose we have a signal 2Hz and amplitude 1. I pass it from a medium. A receiver got the signal with 2Hz, amplitude 0.5 and a few more signals. Convolution gives me an array that say with a specific delay overlapping between inpu...
From Modern Control Engineering 5th Edition page 469 The transfer function of a plant controller by a proportional controller is given by $$G(s) = \frac{K(s+0.5)}{s^3 + s^2 + 1}$$ In the book $G(j\omega) / K$ is plotted and from that they infer that for $ 2 < K$ the system is stable. I plotted the nyquist plot of the ...
I need to compute Fourier series of an audio stream. But DFT/FFT is slow. Are there any ways to compute Fourier series of a signal without using the Fourier transform to check if whether a frequency is present or not?
Here are the specs for FIR filter using Kaiser window. Ap = 0.2 %Maximum Passband ripple Aa = 20 %Minimum stopband attenuation Wp1 = 500 %Lower passband edge Wp2 = 1000 %Upper passband edge Wa1 = 200 %Lower stopband edge Wa2 = 1200 %Upper stopband edge Ws = 3200 %Sampling frequency I used two methods. designfi...
I'm trying to implement the Adaptive Morphological Edge-Linking Algorithm (Frank Y. Shih, Image Processing and Pattern Recognition: Fundamentals and Techniques, section 5.5.2 OR Article link). The problem is I'm having trouble understanding how to implement the adaptive morphological dilation and how it should be appli...
The phase components of a signal that they are got from the Fourier Transform, are simply, the phase offset of each sinusiod. Which is the $\phi$ in equation $1$. However, in case of Hilbert transform, the instantaneous phase is the argument of the sinusoid function. Which is $x(t)$ in equation $2$. I know that we can ...
I am reading this paper here and I wanted to check my understanding regarding the salience function: $$ \hat{s}(\tau)=\sum_{m=1}^M g(\tau, m) \max_{k\in \kappa_{\tau, m}}\lvert Y(k)\rvert $$ Where the set $\kappa_{\tau, m}$ defines a range of frequency bins in the vicinity of the $m^{\rm th}$ overtone partial of the F0...
Dear StackExchange gurus, I would like to pose this question from a practical standpoint rather than a theoretical one, although perhaps some context in the latter might come useful. Real-life devices (say Digital-to-Analog converters for example) have a roll off in their frequency response due to analog front-ends. T...
Are there any algorithms that attempt to perform the inverse of color quantization on an image? In other words, is there a smart way to increase the bit depth of image? The obvious answer would be to simply stretch the values of all pixels to fit the new range; however, that would leave gaps in the histogram, and the r...
I'm using PyWavelets, with a complex Morlet wavelet. Its complex wavelet transform function requires scales as one of its parameters, rather than frequencies. However, I don't understand the relationship between the two. I'm generating my scales like this: base_scale = CENTER_FREQ * quality / base_freq far_scale = base...
According to the 6dB-per-bit rule, a 16-bit DSP would provide 96 dB of dynamic range, approximately. If the ADC and DAC are both 12-bit long, the DSP is still considered to have 96 dB, or the dynamic range is now 72 dB? Also, I would like to know if the guard bits provided by the accumulator (40-bit) increase in some...
My teacher of signals and systems gave us a review problem as following: given a DT rightsided LTI system with transfer function $$\frac{1-a^*z}{z-a}, \left | a \right |<1 $$ show that the system's magnitude response is in unity for all frequencies using graphical method. Can anyone give me any suggestion of solving th...
Why are random signals considered as power signals (i.e. signals with infinite energy and finite average power)? Does this make any sense? What does it mean for random signals to have infinite energy even though we know that real-life signals (usually with inherent randomness in them) have finite energy!
In the time domain let's say we have a signal $L_t$ and $R_t$. Then we can do mid/side encoding/decoding like so: $$M_t = \frac{L_t + R_t}{2}$$ $$S_t = \frac{L_t - R_t}{2}$$ $$L_t = M_t + S_t$$ $$R_t = M_t - S_t$$ Let's say the we convert a block of $N$ values from $L_t$ and $R_t$ to the frequency domain by zero paddin...
I am learning DSP and finding difficulty understanding the term Normalized frequency often used with DFT & DTFT. What does normalized frequency mean in DSP and how it is different from analog frequency? What is the significance of normalized frequency in DSP? Why is the limit of normalized frequency $2\pi$? How doe...
I do not understand how the last equality is derived from the previous. Apparently the first term in the integral (involving $\mathrm{cos}$) is equivalent to the second (involving $\mathrm{sin}$)!! How so?? I DO understand how the integral range is halved (since $F(s)^*=F(s^*)$; where $F(s)$ is the Laplace transform of...
Is there a good, documented open source implementation of spectral subtraction in Python? I've searched a lot but I've only come across pieces of code where I can't really understand what's going on as they are undocumented. For example. Can someone either point me to some implementation or explain step by step what is...
For such a popular and old algorithm, I've had surprisingly little luck finding implementations. I've got it working in MATLAB, but am curious if any other languages have libraries containing it (python?). I've googled extensively to no avail.
Okay so i understand the first det, which is why i got the correct solution. However for the second det, im not sure how to solve it since because of the different coefficents (0,2,4) and i tried of different solutions. If anyone can give me a clear way to solve these it would be appreciated. Thank You.
I want to convert a 16-bit wav file to 12 bit raw audio samples (to simulate the output of an ADC). I'm trying to run $ sox file.wav --bits 12 --encoding signed-integer --endian little 12_bit_signed_le/file.raw And I get the error sox WARN formats: raw can't encode Signed Integer PCM to 12-bit Output File : '12...
I'm given this difference equation, and I'm being asked to plot its response to an input $x[n] = 4\sin^3\left(0.25\pi n+\frac \pi 3\right)u(n)$: $$ y(n) = 0.9051y(n-1)-0.598y(n-2)+0.29y(n-3)-0.1958y(n-4)+0.207x(n)+0.413x(n-2)+0.207x(n-4) $$ Using MATLAB's filter function, I implemented the following code: num = [1 -0.9...
Give the equation $$y[n]-y[n-1] +\frac14y[n-2]= x[n]$$ With initial conditions $$y[0]=0\\ y[1]= 0$$ Find the step response. I have been able to get the solution $$y[n] =C_1(\frac12)^n +C_2(\frac12)^n + 1,,$$ I am have problem finding $C_1$ and $C_2$. How do I find $C_1$ and $C_2$?
I have a search coil magnetometer with two coils, one at each end of a ferromagnetic core of high magnetic permeability: Figure 1. Double search coil magnetometer. (Modified from a drawing CC BY-SA 3.0 Christophe coillot.) Each coil converts change in the magnetic field into a voltage signal. The two signals are digiti...
I'm currently trying to learn how to calculate DFT using FFT with Python. However, I have been struggling to find how should I choose the frequency grid when plotting the final calculated DFT values out of the data samples that I have. Any helpful insights will be appreciated!
I hope to design 1st order highpass filter from transfer function. In the example of 1st order lowpass filter, I first get the coefficients of numerator and denominator in the variable 'b' and 'a'. In case of first order filer, b = 1/tau; a = [1, 1/tau]; h = freqs(b, a, w) % LPF [digital_b, digial_a] = bilinear(b, a, f...
I'm trying to plot the graph of the phase of the Fourier transform of a 2D rectangular pulse. I've been able to evaluate the FFT but I'm not sure if the phase is correct because there are some tilts I can't explain. What are those diagonal lines that appear in the phase? How can I eliminate them? Here there is the ...
I'm trying to understand FFTs, here's what I have so far: In order to find the magnitude of frequencies in a waveform, one must probe for them by multiplying the wave by the frequency they are searching for, in two different phases (sin and cos) and averaging each. The phase is found by its relation to the two, and th...
I want to modulate a complex time domain signal to a carrier frequency 1880MHz but the sampling frequency is 30M which is smaller than Fs. I did upconversion using exp(1i*2*pi*Fc*(0:length(signal)/Fs)) but the PSD isn't centered at Fc. I need to plot PSD and find the relation between the centered freq and the target ...
To detect disturbances in signal processing a common step is to extract signal characteristics to analyze them, among these characteristics it is recommended to use the signal energy. Why energy is recommended over other features that can be extracted, such as statistical parameters of the signal or frequency componen...
Considering a signal $f(t)=\sin(2\pi t)$ with frequency $10\textrm{ Hz}$: Middle and bottom plots show the results of sampling at different rates. I'm trying to understand the case shown at the bottom. Is the sampling rate too high that it's capturing noise? What's the name of this effect? May I call it a kind of a...
Consider a random variable with a known distribution. I want to know if we quantized the variable the how the probability density function(PDF) would change? Specifically if the original PDF is Rayleigh distributed what would be the distribution would look like after the quantization?
To make post-processing easier, I export scope measurements as CSV files, which are then post-processed (mostly in Microsoft Excel, which is not the best tool for the job, but it is all I have at my disposal). One of the post processing used is a simple moving average, and I was wondering how it does transform the sour...
I am trying to compute Delta coefficients for real-time audio analysis. As far as I know, a valid formula is: $$d_t= \frac{\displaystyle\sum_{n=1}^{N}n\left(c_{t+n}-c_{t-n}\right)}{2\displaystyle\sum_{n=1}^{N}n^2}$$ It seems that I need $n$ future frames at each time step $t$ to compute both delta and delta-delta. Howe...
I am trying to understand what filter may be suitable for the following HMM: The signal is a Wright-Fisher one-dimensional diffusion characterised by the SDE $$dX_{t}=\frac{1}{2}\left(\alpha(1-x)-\beta x\right)dt+\sqrt{X_{t}(1-X_{t})}dB_{t}$$ with unknown parameters $\alpha$ and $\beta$. This process has stationary dis...
(cross posted from stack overflow) I have a dataset where measurements were taken at 10 Hz, and I am trying to use a Kalman filter to add predicted samples in between the measurements, so that my output is at 100 Hz. I have it working ok when the velocity is linear, but when the direction changes, the filter takes a wh...
I'm puzzled by some very simple concept with building up a spectrogram. Here is a toy example of the issue: import numpy as np import scipy from scipy import signal import matplotlib.pyplot as plt f0 = 5 t = 2 fs = 250 N = t*fs t = np.linspace(0, t, N, endpoint=False) x = np.sin(2*scipy.pi*f0*t) f, t, Sxx = signal.sp...
I hope this question is appropriate for this site. I came across this passage in The Three Body Problem, a novel by Liu Cixin: The professor had put up two pictures: One was the famous Song Dynasty painting Along the River During the Qingming Festival, full of fine, rich details; the other was a photograph of the sky ...
I have a pretty good understanding of what chroma is when represented against time, but I don't understand what it means when one represents chroma against beats
I'm trying to write software to create a mosaic of one big image made up of a bunch of smaller images. The result is okay, but I think it would be better if I used dithering. My problem is that dithering is giving even worse results and I don't know why. Here's the original: Here's the same image quantized (no dithe...
I have some simulated images of light bulbs in Matlab. What I want to do is replicate the bloom (glow) effect on these images. The degree of the effect (i.e. how much the light bulbs bloom) should be controllable. Is there any implemented function in Matlab Image Processing Toolbox help me to achieve this. Or is there...
I was unable to solve a convolution question.Question is attached herewith. I don't know how to initiate for solving the problem and what is the final expression that prove the convolution of a top-hat function with itself is the triangle function.
In Shannon formula below: $$R = W\log_2\left(1 +\frac{P_t\cdot H^2}{W N_0}\right)$$ why square the channel gain? When calculating the channel capacity, why do we need to square the channel gain? Notation: $W$ is the bandwidth, $P_t$ is the transmit power, $H$ is the channel gain and $N_0$ is the thermal noise power den...
i am trying to create a low pass filter in matlab for a project in signals and systems class but i couldn't. cut off frequency is 500 , sampling frequency is 10000 and the low pass filter's band width is 150 Hz. If you help me i would be very appreciated
The DFT has the FFT, Hadamard transform has the Fast Hadamard Transform and so do a number of other unitary transforms (operators). Is there or has there been an attempt at creating FFT style algorithms for generalized unitary transforms?
On page 11 of Fundamentals of Image Processing by Ian T. Young, Jan J. Gerbrands, Lucas J. van Vliet (pdf) the results of the Fourier transform are shown (Figs 4a and 4b) and it appears to me (please correct me if I am wrong), that the transform may exhibit redundant data in four quadrants. If this is so, would it not ...
I want to implement following function: y = ksalgrithm(x, alpha, M, Nout) where x is the input vector with length Nout alpha=0.99 Nout is the length of the output vector. The algorithm should do the convolution of $y[n]=(h_1\star x)[n]$, where $h_1[n]$ is the inverse of the $z$-transformation of $H_1(z)$. The input...
I generated a one second audio clip of a sinusoid at 440 Hz (16-bit, 44.1 kHz), ensuring that the last sample is zero. However, I hear a faint "blip" sound at the end of the clip, and have noticed this with similar clips that I have found online. Do you know why this happens, and how I can get rid of the "blip"? Thanks...
I asked this question earlier. To summarize, dithering an image with a specific palette was causing the image to look smeared and very discolored. Thanks to Olli Niemitalo, I found out my issue was because the colors in the original image (particularly the near-blacks and near-whites) were outside the gamut of the pal...
I recently came across a technique called bit-plane slicing for image compression in a book "Digital image processing" by gonzalez and woods . They just presented the theory and i wanted to implement it . So ,my code just creates images out of 8th bit and 7th bit plane seperately and saves them . I just wanted to ma...
In the plot below the blue wave is the original signal. The orange wave is after the low pass filter. The green wave is after the high pass filter. I have a noisy ECG signal stored in the ecg_val column of a pandas dataframe. I'm doing the following: # implement the 30 Hz low-pass forward-backward filter __nyq = 0.5 *...
I have some question for you about Filter design. Α. Calculate the transfer function in order to stop the frequency of $300\textrm{ Hz}$ for sampling frequency at $12\textrm{ kHz}$. Use the zero – pole placement method Β. Calculate the absolute value for the designed filter at $f_1=300\textrm{ Hz}$ and at $f_2=200\tex...
I have been reading about equalization and channel estimation in order to apply to my application of estimating trajectory path for a two-wheeled robot. The application is quite similar to equalization. I am studying the Least Mean Square algorithm (LMS) and have some basic doubts regarding how to determine if equaliz...
What is the variance of $N$ samples of white Gaussian noise? I have an Equation for a continuous time which includes an $\mathrm{SNR}$ term inside it. Now when I am going to sample it, what is the value of the sampled $\mathrm{SNR}$? $\mathrm{SNR}$ here is $\frac{A^2}{\sigma^2}$. What is $\sigma^2$ of the sampled versi...
I am implementing a receiver for the amateur radio mode PSK31. It is effectively a BPSK modulation with a pulse shape of a raised cosine twice the width of one symbol. Here are four consecutive pulses, with 4 samples per symbol, as they would be transmitted: The trouble is matched filtering introduces ISI. 4 pulses ag...
I measured a (real) voltage waveform (red curve below). Then I took its FFT and used the magnitudes of the first 20 harmonics (even and odd) to model the signal (blue trace below), by summing the fundamental and harmonic-related sine wave components as follows: Vout(t)=A1*sin(wt)+A2*sin(2wt)+A3*sin(3wt)+...+A20*sin(20w...
For a digital music synthesizer I am developing, I have a stream of incoming samples $x_i$ and would like to downsample by $M$ to obtain a stream of samples $y_{Mi}$. I am currently bandpassing the signal with an FIR which is a brick-wall filter windowed by Blackman-Harris, and it sounds great to my ears. But I have to...
I know normalised bandwidth can be found from FFT plot of the signal. But I'm confused that at what stage I have to take the FFT. I mean first binary data is input to a convolutional encoder, then to NRZ encoder, Then GMSK modulation (sampling frequency till now is 100KHz), then upsampling to 30MHz sampling frequency a...
The project I am doing is to detect stones in an image of a jewel, so as to get the idea of the deduction to be made in the gross weight of the jewel. I have done image-segmentation in the HSV color space following this paper. If given a raw input like IMAGE1 below, the method I follow is three-fold: using "gold" pix...
I'm trying to determine the formula of a variable frequency sine wave based on the values of max1, max2, min1 and min2. y(0) isn't necessarily 0 and I can assume the frequency increases or decreases linearly (I only want to plot the first couple oscillations). I've figured the formula for the non-modulated signal (bas...
In the A2DP specification, the SBC code uses a "polyphase filterbank" which has the formula $$x[n] = X[m]\cos((m+0.5)(n+M/2)\pi/M).$$ I am confused to what this is? It seems to take in $N$ points and output $2N$ points in some sort of frequency domain. Is this a special type of DFT and can it be optimized with a radix-...
I've seen this guide showing a basic NMF of a spectrogram. My aim is detect guitar pitch from the decomposition. I want to do this by explicitly create a fixed template of pitches and construct the W matrix from these. I've seen some papers giving an overview of this, but I am not sure how it's practically done. Do I r...
I believe I understand well enough how the Viterbi algorithm can reverse the effects of ISI when the combined impulse response (transmit filter, multipath, receive filter) is known. I've read How I Learned to Love the Trellis by Bernard Sklar, and I also asked about it in a previous question: Applying Viterbi algorithm...
I have a 3D signal $M(x,y,t)$ and I want to do convolution with signal $G(x,y)$ and $Et(t)$, I mean, how to calculate this Convolution below in Matlab? $$A(x,y,t)=M(x,y,t) \star G(x,y) \star Et(t)$$ In my case, $M(x,y,t)$ is a movie with $k$ frame; $x,y$ are position in image and $t$ depend on frames number and frame r...
I'm new to working with Kalman filters. I have a Kalman filter that's working well for modelling the 2D position of an object. The model at the moment holds information on position ($x$ and $y$) and velocity ($x$ and $y$). I only have position information available for measurement. I was wondering if adding acceleratio...
I am currently working on my Bachelor-Thesis about Real-Time convolution and Impulse Response Measurements. After reading different papers about the (exponential)sine sweep method I didn't find an answer on how to calculate the inverse filter for deconvolving the impulse response. In the papers I read, it is described ...
I am attempting to implement a generalized least squares estimator that uses a noise covariance matrix from measured data. The basic model is as follows $$\hat{c}_{GLS} = \left(\bf{A}^T\bf{\Sigma}^{-1}\bf{A}\right)^{-1}\bf{A}^T\bf{\Sigma}^{-1}\bf{r}$$ where $\bf{A}$ is a matrix of my basis functions, $\bf{\Sigma}$ is t...
Anybody give me an advice how to find the auto-covariance of the product of deterministic and wide-sense stationary signal. I couldn't find how to solve this, I have looked and searched the internet, I found just 1 similar topic here so I think someone in here may solve it. The mean and autocorrelation of $X(t)$ are $...
In Welch's method a time-series is segmented and then the subsequent FFTs of the segments are averaged. Is there an equivalent time-domain operation? I guess doing the the Welch estimate and producing an impulse response using an FIR filter might do what I want, but I'm looking for a way to do it in the time-domain dir...
I have been trying to attempt this question for quite a while and I am not sure how to approach it. Would anyone be able to help out with the working?
If a matched filter is optimal for detecting a known pulse in an AWGN channel, any other filter must have a degraded SNR. Given a discrete pulse shape and an arbitrary non-matched filter, is it possible to calculate how much worse the SNR will be, relative to the matched filter case?
I'll be using a NXP DSC with 56800Ex core and my aim is to implement a Elliptic IIR Filter in it. The User Reference Manual of the 'General Digital Filters Library' (which is available here) has functions to implement IIR Filters. But on page 3-19 shown above, it says The filter coefficients are calculated usin...
Is there some general way to perform the task given in the question? I have a filter given as follows: Tdouble MoogVCF::run(double input, double fc, double res) { double f = fc * 1.16; double fb = res * (1.0 - 0.15 * f * f); input -= out4 * fb; input *= 0.35013 * (f*f)*(f*f); out1 = input + 0.3 * in1 + (1 - ...
I was doing a bit of research on FFT and I came across this paper. According to it, computing the Fourier Transform using FHT is significantly faster than other methods, even for complex data. Yet, from what I gathered so far, the FHT method is rarely used. Why is that?
The goal is to find the FIR filter coefficients $\mathbf{h} = [5;3]$ with the help of the adaptive FIR filter $\mathbf{w}$ of order $p = 2$. I have implemented the Stochastic approximation algorithm in MATLAB for this adaptive system identification problem. $\mathbf{w}[k] = \mathbf{w}[k-1] + (1/k) \cdot \mathbf{x}[k] ...
I have a very noisy data from a particle accelerator and I want to improve the signal (in every way it's possible): As background: It's data from an electron accelerator which produced Bremsstrahlung when distracted (so it emitted photons towards our detector). Signals have been recorded by coincidence between a tagger...
I've recently been disappointed by a few books that have "using MATLAB" in their title, which makes me wonder why. I like MATLAB so it isn't MATLAB. There are other books that I will keep at considerable inconvenience to myself even if I haven't used them for years, and that also makes me wonder why? I'm curious if oth...
Is it necessary that cross power spectrum (CPSD) should always be between power spectrum (PSD) of individual signals, irrespective of the method we compute it? The images are shown below.
Let's suppose I have to find the impulse response of a discrete time LTI system given a specified input and its output through the system. I think I'm going to get the $\mathcal Z$-transform of input-output and then as everyone knows $$H(z)=\frac{Y(z)}{X(z)}$$ The problem is: I want it in time domain, so I need to in...
The problem I am having is related to sample rate conversion and more precise to sample rate reduction. I have been working on the paper Interpolation and Decimation of Digital Signals Tutorial Review in [1] and A digital signal processing approach to interpolation in [2] where the maths make my understanding difficult...
From a simulation with Houdini software I retrieved these parameters: Camera position: -0.675839, 33.5945, 0.0318854 Camera Rotation: 0.0318854, 92.4693, 0.1 Focal Length: 52.5172 mm Image size: 1920 x 1080 Pixel Aspect Ratio: 1 x aperture = 41.4214 mm I am not sure about how to build the system for transforming 3d coo...
With scipy I can use signal.butter and signal.lfilter on a time signal. Performing a Fourier transform then shows me that the filter worked. Using signal.freqz I can get the frequency response of the filter. Is there anything stopping me from simply taking the FT of my time signal and convolving it with my frequency r...
Sorry for a basic question but I really wanted to understand the relation between the instantaneous frequency and instantaneous phase of a sinusoid. We know that we can get the the instantaneous frequency by differentiating the instantaneous phase and normalizing with 2*pi. Also, we could get the instantaneous phase by...
I'm a machine learning newbie. I have sensor data which is generated by several sensors. The data is a series of 'time's. (it is not labeled, in other words, I cannot know which sensor generates which 'time'). And each sensor basically generates data periodically, but sometimes it generates other data. For example, th...
First of all, I'm a beginner in this field, please tell me if any of what I'm asking is too basic / can be found with some google research. I have a situation with a static TX and a moving RX (v is its velocity vector): I know the value of $\vec{v}$ and the position of $TX$ and $RX$. My goal is to simulate the Doppl...
Based on that article and all the resources on the internet that advise the use of noise shaping for fixed-point filter implementations, I tried to make a few simulations on Matlab for the biquad I'm trying to implement. Here is my filter's frequency response using Matlab's own filter function and plotted with the peri...
I will use a specific example from image processing to illustrate my question, but I'm actually interested in the higher level / abstract procedure. I must lack the specific vocabulary and my hunch is that my question relates to some topic in math / signal processing / computer science that I'm not yet aware of. I extr...
It seems that FFT-based convolution suffers from limited floating-point resolution due to evaluating everything around the roots of unity, as you can see in the $10^{14}$-factor error in this Python code: from scipy.signal import convolve, fftconvolve a = [1.0, 1E-15] b = [1.0, 1E-15] convolve(a, b) # [ 1.00000000...
I was wondering this for quite some time but couldnt find a satisfied answer. Seems like not a lot worry about phase response in general. But maybe I'm thinking about it in a wrong way... I want to apply a high pass filter to my microphone pressure signals to cut away the low frequency garbage before beamforming. So I ...
I have the following integral $$\int_{-\infty}^{\infty} g(t-\tau) \, \mathrm d\tau$$ where $g(\cdot)$ is a known function, e.g., $g(t) = \sin(t)$, and I want to evaluate its value with MATLAB. How should I do this in discrete form? Thanks.
If I'm correct, Fourier transform lets me know the magnitude and phase of any given frequency in a signal. I have a sampled signal and I want to compute its Fourier transform (any frequency) without comparing it to the sine/cosine wave of that frequency. So I could create a function checking the wavelength in a signal ...
Given the real-valued functions $f_1$ and $f_2$ with $x\in\mathbb{R}$, then $$ \frac{df_2(f_1(x))}{dx} = \frac{df_2(f_1(x))}{d f_1(x)}\frac{df_1(x)}{dx}$$ Is it then the case that if we also have a real-valued function $f_3$, then $$ \frac{df_3(f_2(f_1(x)))}{dx} = \frac{df_3(f_2(f_1(x)))}{df_2(f_1(x))}\frac{df_2(f_1(x...
Question My interpretation Work I'm attempting to do this in MATLAB. I know that for discrete Random Processes going into an LTI system the autocorrelation function of the output is $R_y[n] = h[n]\star h[-n]\star R_x[n]$ where $\star$ is convolution. The two tap Haar filters are: h1 = [0.707 0.707] and h2 = [0.70...
Currently, I am studying a paper by K. He and J. Sun, “Computing nearest-neighbor fields via propagation-assisted KD-trees,” in Proc. IEEE Conf. Comput. Vis. Pattern Recog., 2012, pp. 111–118. In the paper there is a sentence which i can quote as: ... We use the first 16 WHT bases for the Y channel2 and 4 for each ch...
I have been attempting to implement a Kalman filter on an FPGA in VHDL and have got to the point that it works. However I have the issue that each variable requires 64 bits to be represented to get the expected behaviour in simulation. With my current implementation about 95% usage of the FPGA is required for a 2D Kalm...
Music services like Shazam and SoundHound take an audio sample from your microphone and compare it to its database to recognize music. This algorithm works very well under high noise, unequal frequency bins, and even a simple hum or whistle to the music. However, if you change the song's pitch or speed by more than 5%,...