instruction
stringlengths
31
27k
It's well known that magnitude of the analytic signal for narrowband signals gives the envelope. For example we can demodulate AM signal by abs(hilbert(s_AM)) in MATLAB. I'm looking for the exact mathematical conditions which specify when we get the envelope by computing $|s(t)|$. By analytic signal, I mean $$s(t) = x(...
I am trying to implement the constrained least squares filtering as described in Rafael C. Gonzalez, Richard E. Woods - Digital Image Processing 3rd Edition Section 5.9. The equation (5.9-4) says that $ P \left( u, v \right) $ is the Fourier transformation of the Laplacian filter ($ 3 x 3 $). But the coordinates $u$, $...
as the definition of normalized frequency is the frequency divided by the sample frequency, I'm confused about my signal so as an example a signal sampled at ($f_s=500 000$) Hz when applying a FFT, an impulse at frequency of $87$ Hz occurred(true value confirmed) while it occurred at $0.117$ Hz in normalized frequency ...
When I started to write a software for chromatogram processing I naively thought I'd find some existing algorithms that do all the peak detection automatically and there won't be a need for any manual curation whatsoever. But it appeared that none of the major software in this field works this way. Users have to manual...
I've heard a million times that applying DFT twice will result in a reversed array, but that is not what actually happens. Instead, the first element remains where it was, and the rest of the elements are reversed. Is there an intuitive reason for that? Octave code: N = 16; x = linspace(1, N, N); fft(fft(x)) / N Resu...
I would like to smooth amplitude spectra of signals around their peak frequencies. I could perform FFT, find the peak frequency, and smooth around the peak in frequency domain, then inverse FFT back to time domain. However, is there a way to do the spectrum smoothing in time domain? If finding peaking part is difficult...
Hello everyone!. This is a template to QPSK transmission but Packet Encoder block is no longer available in new GNURadio versions, what do I need to replace this block in order to do a QPSK Transmission? Or are there any newer examples? Thanks in advance. Be safe
In a $4$-FSK we have $$s_i(t)=\cos(2 \pi f_i t)=\cos(2 \pi (f_c+\alpha_i \Delta f)t)$$ with $\alpha_i=2i-5$, and $\Delta_f=\frac 1T$, where $T$ is the time symbol and $i \in [1,4]$. But with the expression of $s_i$, I have a bandpass signal. To get the baseband signal: $g_i(t)=e^{j2 \pi f_i t}$. Is it correct?
The Short Time Fourier Transform (STFT) is used to identify time localized frequency content of a signal. The STFT operates by chunking an input signal into blocks and performing FFT on the block, and then recording the frequency coefficients for that point in time. However, the STFT enforces fixed time and frequency r...
As I know, the Hilbert transform $$ H(x(t))=\frac{1}{\pi t}\star x(t) $$ in time domain is equal to $$ -j \operatorname{sgn}(f) \cdot X(f) $$ in frequency domain. so I tried simple example using MATLAB as below, x=[1,2,7,3]; y1=imag(hilbert(x)); f=[0,1,2,-1]; y2=ifft(-1i*sign(f).*fft(x)); but the result of y1 and y2 a...
if we have a discrete random process \begin{equation} x\left(n\right)\:=\:0.2x\left(n-1\right)+w\left(n\right)+w\left(n-1\right) \end{equation} where $ w\left(n\right)$ is a noise with a mean $ m_w=0.5$ and variance $\sigma ^2_w\:=\:1$. I am trying to find the value of $E\left\{x^2\left(n\right)\right\}$. Here's my wo...
I am given a task to do sampling on the function $$f(t) = 1.3 \sin(2\pi \cdot 10 \cdot t)$$ with sampling frequency 4 Hz and start at time t_start = 0.0877s, so there should be aliasing and in the frequency spectrum, the amplitude should be at the perceived frequency. The perceived frequency is 2 Hz as the folding freq...
After a BPSK modulation we have the upsampling and the pulse shaping filter. But for a FSK, do we have upsampling and pulse shaping filter, or just the pulse shaping filter?
I keep reading many literature, and in most cases $-6$ dB is referenced as the full width at half maximum (FWHM). Mathematically, how is that possible from the definition of dB?
Arikan in his paper (arXiv link or IEEE link) about polar coding, explains how you can force the channel to polarize by applying a linear transformation (the generator matrix). He calls this a split and combine process, where he creates synthetic channels that have near perfect or near useless capacity. But I understan...
I am trying to smoothing a signal's power spectrum by convolving the spectrum with a boxcar function in frequency domain. However, the result is obviously not what I expected: original two frequency spikes become three and the frequencies are different. Could anyone possibly point out my problem? Is the problem in the...
I am recently studying physical layer the Wi-Fi (802.11), after doing the FFT, the signal bits are transformed from '0' and '1' to complex numbers, but the complex number is not exist in real life, so my question is: How is transmitter send those complex numbers? What is the transmitter actually send?
I am a high school student that carried out the experiment on the Doppler effect to therefore analyze the graph but after doing some research, I saw one of the articles saying “ Fourier analysis is a mathematical tool that allows us to extract information about the frequency spectrum of any signal.” I don’t understand,...
I’m looking to use an FFT to generate a frequency spectrum in 1/3 octave bands. After reading many posts on this site as well as others, I believe the appropriate approach is set out below. I’ve dry-run the calculations in Excel and the results look reasonable, but reasonable is not necessarily correct. To ask a specif...
I am pretty new to DSP and have been looking at how image scaling is done in hardware. I and came across a 2D scaler core for an FPGA here. I have read up a bit about polyphase filters, but am confused about what the "16 phases" referred to on page 3 with the following diagram are. I have not come across this elsewher...
I am measuring ECG signals on subjects and I am having issues filtering a very small signal from the inherent noise of the collecting device. I am using an 18 bit ADC to digitize the signal Here is an example of the noisy signal I get: I would like it to look like this: I have tried different filters and the best sig...
Before the example it has been stated that in a system described by $$ Q(D)y(t) = P(D)x(t), \quad (1.) \iff \\ (D^N + a_1D^{N-1} + ... + a_{N-1}D + a_N)y(t) = (b_{N-M}D^M + b_{N-M+1}D^{M-1} + ...+b_{N-1}D + b_N)x(t) $$ if $N = M$, setting $y(t) = h(t)$ = impulse response, we will get $$ h(t) = b_0 \delta(t) + \text{cha...
I am trying to understand Section 2.2.3 of the book "Fundamentals of wireless communication" by Tse and Viswanath. In this section the authors explain how to go from the continuous time baseband model to the discrete time baseband model. An image of the relevant pages are given below. I am going to use equation numbers...
Since months I am working on a spectral envelope estimation algorithm. I even devised an innovative one (90% done) but I first wanted to have a complete panorama of the present art. I pretty understood most of the published methods and their limitations, including cepstral smoothing, lpc and true envelope. Unfortunatel...
I am about to understand a kurtogram, and don't understand what means the value of "K" (presented in table 1),or especially why takes values of 1.6 ; 2.6 ; 3.6 etc. Other question is how do interpret the kurtogram (figure 2)
I read 2kHz sinusoidal signal that I generate using youtube and mobile phone by shotgun microphone and sound card in my laptop. Results (python): But why are the values zero at the beginning and then the values are very large and around 8 [s] the signal has a "good" shape?
I am trying to simulate a QPSK transmission using GNU Radio following mpsk_stage6.grc example in Gnuradio tutorials. Currently I have no idea where is the problem and everytime I execute the flow graph i get this on a.txt file. I am not sure why this flow graph is not correct. Thank you in advance.
Trying to use Scipy Butterworth filter to filter frequencies below 54 Hz from audio files. Audio files are stored as WAVs. Sample rate is 44100. When I try using this filter the result is distorted (very). Also, I assume with fixed time and sample rate that input and output files should be exactly the same size. Input ...
Frequency modulation formula: $$ x_{FM}(t) = A_{c}\cos\left(2\pi f_{c} t+ 2\pi k_{f}\displaystyle\int_0^{t}m(\tau)d\tau+\phi_{0}\right) $$ Its change from $m(t)$ to $m(\tau)$. What is $\tau$? I wonder what it means.
Suppose i have all my poles in unit circle center. What kind of information this gives me? Can i determine if this filter is IIR or FIR?
Consider a FIR audio filter with symmetric impulse response. In my case, the filter kernel width is 15 frames on each side (so including the center frame, 31 frames total). When examining the audio impulse response of this filter, it includes (A) the initial interval where it approaches the center, then (B) the center...
I am studying the channel coding theory. The channel coder adds redundant information to the input signal, that helps a decoder to reconstruct the signal. BUT: Can encoder help to eliminate effects such as Doppler, offset...? Edit 1 when we are talking about improving encoder in practice, what does it mean? What should...
I am trying to produce a box function filter of a signal in python. I expected to find this functionality in scipy.signal, but I can't find any solutions. What I am trying to do is this. I have 2 signals that look like this: I have the peaks plotted for both of the signals, as you can see. I am trying to create a box ...
Hi I am learning FFT I am confused about this bit of code: what is the reason for scaling the sampling frequency and what is bin scale and why and when do we use it? thank you Fs = 20000; % sampling frequency Binscale = 100; %FFT for determining fundamental frequency with 0.01Hz accuracy k = Fs*Binscale;
I have implemented a paper regarding echo detection in real-time using MFCC coefficients. Now, I want to remove the echo from the mixed signal. Let me explain it as: There are two signals, NearEnd signal (Signal Containing Echo) $N$ and Farend Signal (Original signal which causes echo when played) $F$ Echo is being de...
I would like to find a preferred pair of $m$-sequence of degree 34 (not a multiple of 4) for Gold code. However, I am lost when I am checking William Wesley Peterson's table in his Error-correcting Codes, Appendix C I tried first fix the first entry for my first $m$-sequence. To find the other sequence, since $n = 34$...
When a discrete-time signal is obtained by sampling a continuous-time signal, why we are removing the information about sampling interval and only deal it as a sequence of numbers?
Does the Fast Wavelet Transform(FWT) produce the same coefficients as the Discrete Wavelet Transform(DWT) if configured for the same depths? Or is the the FWT just an approximation of the DWT?
I´m stuck in a deduction analysis of the variance of a gaussian white noise signal in a "integrate-and-dump detector" of a baseband data transmission receiver, where $n(t)$ is white noise with double-sided power spectral density $N_0/2$ [W/Hz] I can understand all the steps except when they deduce How do you get to ...
Let $x(t)$ be a real bandpass signal and $x_l(t) = (x(t) + j\hat{x}(t))e^{-j2\pi f_0t}$ be the lowpass equivalent. Is there any relation between $P_x$ and $P_{x_l}$ where $P_x$ refers to the average power of $x(t)$ and $P_{x_l}$ refers to the average power of $x_l(t)$? I tried to use the definition $$P_x=\lim_{T\righta...
How does Synchrosqueezing Wavelet Transform work, intuitively? What does the "synchrosqueezed" part do, and how is it different from simply the (continuous) Wavelet Transform?
I would like to find the point that are "not interpolated" when I rotate an image with e.g. Matlab's imrotate() by an angle which require interpolation e.g. 6 degrees, i.e. not a multiple of 90 degrees. In other words, I would like to perform rotation by an arbitrary angle but WITHOUT any interpolation. (i.e., I expect...
I am trying to understand how to use nufft from the Matlab doc. My goal is to compute a FFT of an image (2D) which has missing points (not sampled). I have a list x and y of coordinates of the points that ARE sampled. These lists are for the x and y coordinates, like, say for a 64x64 image: x=[1,2,3,10,11,12...],y=[1,2...
I have started working on a Direction-of-Arrival estimation problem and I am testing various algorithms. I came across Multiple Signal Classification (MuSiC) method. In all textbooks I have looked at, the final step of the method is to search for maximums in the pseudo-spectrum given by $$ P \left(\theta \right) = \fra...
I am trying to plot the frequency response of a dual recursive running sum (RRS) filter, with the $\mathcal Z$-transform of each given by: $$\frac{1 - z^{-L_n}}{1 - z^{-1}}$$ This is the code I've written: % (1 - z^-L1) / (1 - z^-1) * (1- z^-L2) / (1 - z^-1) L1 = 75; L2 = 53; fc = 500; fs = 44100; den_exp = -exp(-2j*...
Suppose I have a signal $$ \mathbf{s} \sim C \mathcal{N}\left(\mathbf{0}, \sigma^{2} \mathbf{I}_{N_{}}\right) $$ The signal going through a channel : $$ {\mathbf{r}}_{}=\mathbf{s}+{\delta \mathbf{n}} $$ where : $$ \mathbf{n} \sim C \mathcal{N}\left(\mathbf{0}, \sigma^{2} \mathbf{I}_{N_{}}\right) $$ $$ \mathbf{\delta}...
I read the source code of librosa.stft and sicpy.signal.stft, and notice that the calculation results of STFT in these two libraries are quite different: In scipy.signal.stft, the stft result is scaled by 1.0/win.sum(), while in librosa.stft no scaling or normalization procedure is done. So why scipy.signal.stft do the...
I want to find the direction of a sound source in 2D space. I use two microphones and one sound source for that. I have recorded audio data into two arrays. When a sound is detected, it starts to record data into arrays and stop the recording when no sound is detected. I am confusing about the next step. How I take th...
I'm relatively new to this material, so apologies in advance if I'm missing something obvious. I'm trying to smooth some very noisy signals. What I observe is that if I apply an ewma, even with a large center of mass, the resulting signal is still relatively noisy (in the sense of jittering from step to step). If howev...
Im trying to understand convolutional encoder $K=3$ , and I almost understand it but still confused about what's called transition matrix which in other words it means what input value ($0$ or $1$) would produce the next state, given the current state. So if we have $K=3$ which means $3$ shift registers, there's $2^{...
For the simple case, let's consider the correlated signal $s$ with jitter (without noise) as follows: \begin{align} s(t, \theta_i) = \cos(2\pi f (t + \epsilon_t) + \phi + \theta_i), ~~ i=0,1, ... \end{align} where the parameters $t$ is time, $\epsilon_t$ is a random variable for the random jitter in the signal $s$ with...
I want to build and simulate a 6 GHz, 4th order lumped-element Chebyshev bandpass filter with a maximum passband ripple of 0.1 dB and a bandwidth of 1 GHz, and as I understand it, there should be 3 lobes in the S11 response, but instead my circuit has a huge drop at the center frequency. I'm not certain what could be c...
I wanted to ask that in frequency domain the rectangular pulse is a sinc function, so is this sinc function periodic or aperiodic? Also if signals that are continuous in time domain then they are aperiodic in frequency domain?
I have a problem, I wanted to filter the signal with a Butterworth filter built on the basis of a prototype. I have zeros and poles and an $H (s)$ answer, and I do not have the frequency response. How do I get it? I got transfer function using zp2tf and tf. % z -> zeros % p_lp -> poles of designed low pass filter % k -...
Assume the observation of the original signal $s(t)$ is $x(t) = s(t) +n(t)$, where the signal and noise are independent. Then we need to design the Wiener filter $g(t)$ to estimate $\frac{d s(t)}{dt}$ which is the derivative of the original signal $s(t)$. The design of the Wiener filter is from the MMSE: $E[e]$. But ho...
I wish to calculate the Final Value of the following system given initial conditions not at rest, and assuming the X will not change from its initial condition value. The transfer function is $$H(z) = \frac{z^{-1} \phi / (1 - \phi z^{-1})}{1 - z^{-1} \psi / (1 - \psi z^{-1})}$$ It arises from the following feedback sys...
In case of the signal, when we plot an impulse response we have our x-axis - samples (or time), y-axis - amplitude, but in case I work with image processing? x-axis is pixels? and y is still amplitude?
I have searched Google for circular cross correlation using Matlab, and I have found it only for one dimensional signals. Could you please help me implementing circular cross correlation between two images using MATLAB?
I'm having a lot of trouble wrapping my head around what the convolution of two identical rectangular pulses that go from amplitude +A to -A with period T looks like. Please see my drawing below. I know that when a pulse has amplitude 0 to A, the resulting convolution of two identical pulses is a triangular pulse from...
Let $x[n]$ be a periodic sequence with period $N$ and Fourier series representation $$x[n] = \sum _{k=<N>}a_ke^{jk\frac{2\pi}{N}n}$$ Determine the Fourier series coefficients for $$y[n] = \begin{cases} x[n], & \text{if $n$ is even} \\[2ex] 0, & \text{if $n$ is odd} \end{cases}$$ My try $N$ even We have $x[0], 0 , x...
I'm trying to find the inverse Fourier transform of two impulse functions, which correspond to the Fourier transform of the function $h(t)=A\sin(2πf_0t)$. The Fourier transform of the above sine function is as follows: $$H(f)=j \frac{A}{2} \delta\left(f+f_0\right)-j \frac{A}{2} \delta\left(f-f_0\right)$$ When I try to ...
So after I learned this two topic: quantization and sampling, I'm learning the way to look at both of them and try to optimize the split of a given amount of bit B to N and k, where N is the amount of samples and k is the size of the finite set of numbers can represent the values (quantization). There is one calculatio...
I want to normalize my data prior to a deep neural network model (DNN). It was recommended to me to use real mean square (RMS) normalization for audio, though I am not sure this is the best for a DNN. I am using MFCC features to represent the data. Is RMS a good method? If so, how do I choose a good RMS value to normal...
I'm trying to solve a problem on convolution from Alan V.Oppenheim: Find the convolution output $y[n]$ for the following signals: $$x[n]= u[n]\quad\text{and}\quad h[n]=a^{-n}u[-n-1], \ a>1 $$ I started the evaluation: $$y[n]=\sum_{k=-\infty}^{+\infty} u[k]a^{-n+k}u[-n+k-1]$$ considering that $u[k]=1$ for $k\ge0$ and $u...
My question is how to determine the parameters of a signal from a spectrogram statistically. The most important parameters that I am looking for are the lower and higher frequencies of the signal. I have hundreds of these audio clips and I would like to perform statistics on them to determine the bandwidth of the sig...
To use DFT/FFT (or maximum likelihood) method to estimate the frequency offset introduced by the channel, we need to remove the modulation on the received data samples in the front. If the unknown data samples belong to a QPSK constellation, how should this modulation removal be done?
I am trying to encode a bitstream as offset in a complex exponential, but when I do, the sinusoids get chopped off. Do I need to apply a lowpass to the bitstream or is there a more elegant way? bits_t bit; double t, cycle; double pi = 4 * atan(1.0); doubl x, y; double complex z; short ch[2]; int f = CARRIERFREQ; int fs...
I'm trying to solve a problem on convolution from Alan V.Oppenheim: Find the convolution output $y[n]$ for the following signals: $$x[n]= u[n]\quad\text{and}\quad h[n]=a^{n}u[-n-1], \ a>1 $$ I started the evaluation: $$y[n]=\sum_{k=-\infty}^{+\infty} u[k]a^{n-k}u[-n+k-1]$$ considering that $u[k]=1$ for $k\ge0$ and $u[-...
Is the multi-bit gold code resulted from a xor of two different multi-bit m-sequences will still maintain its statistical property (bounded correlation, distribution of 1 and 0) ?
I am in trouble with Viterbi decoder for a while. I have some questions. I need to decode messages from a continuous stream which is encoded. I'm reading from book : digital communications bernard sklar second edition and the Viterbi decoder including what's called stage "ADD-COMPARE-SELECT " and I didn't understand we...
What is $N$,N-point Discrete fourier transform? Is it different from 2D Fourier transform? and how to compute $N$, N-point Discrete Fourier Transform of a given laplacian filter kernel? say for a given filter {{0, 2, 0}, {1, -2, 1}, {0, 2, 0}}, where $N = 103$ and frequency and spatial indices ranges from -100 to 100, ...
I have a signal acquired at 40 MHz sampling rate, from an ultrasound transducer with center frequency of 5 MHz. The frequency spectrum is shown in attached images (whole spectrum and zoomed). There is ~400 KHz noise present in the whole spectrum (see red boxes). How can I filter this noise? It looks like a abs(sinc) mu...
Let $x(t)= 1$ for all values of $t$. The even and odd components of $x(t)$ are ____ , _____ respectively.
I am dealing with a problem with Wiener filter. Assume the original function is $s(t)$ with observation $x(t) = s(t) + n(t)$. And $s(t)$ and $n(t)$ are WSS (wide sense stationary) and they are independent. Now I want to find the filter to estimate $h(t) = \frac{d s(t)}{dt}$. The wiener filter involves finding the corre...
We send the data in bytes to the RS Encoder block. The RS Encoder block encodes the data with the Reed Solomon (225,223) code. It waits for 223 bytes and after this encode them to make a codeword of 255 bytes. What happens if I can send only 219 bytes instead of 223 bytes? Does the length of the virtual fill increase o...
I know that complex exponential functions are eigensignals to LTI systems. Do these include real exponential functions? E.g. $2^t, e^t, ...$ Thanks for the help!
Where does $1$ come from, like from $-N$ to $N$ is $2N$ so why is $2N+1$?
Reading about complex signals, I learn a phasor is composed of real and imaginary components as $e^{2\pi j \cdot \omega}$ and $e^{2\pi ⁻j \cdot \omega}$. Why is this? How can a signal be imaginary?
I am learning about the properties of the Fourier Series (FS), which is defined by: $$x(t) = \sum_{k=-\infty}^{\infty}c_{x}[k]e^{j2\pi kt/T}\tag{1}$$ where $$c_{x}[k] = \frac{1}{T}\int_{T}x(t)e^{-j2\pi kt/T}\,dt.\tag{2}$$ One of the properties of FS is the time integration property, which is that: $$\int_{-\infty}^{t}x...
Consider the next sum \begin{equation} \sum_{k = 0}^{N - 1}e^{-j\frac{2\pi}{N}k} \end{equation} Its geometric meaning is the sum of uniformly distributed vectors on the unit circle. Thus, we can say that the sum is zero. If we try to be more precise, then for the case of even N, we can single out pairs of opposite vect...
I need to simulate some channel effect to a buffer of MPSK signal. How to add a frequency offset to a buffer of baseband MPSK signal?
I am trying to understand the first order Taylor series expansion when deriving the math behind mean shift tracking. Given the Battacharya coefficient between the target descriptor and candidate descriptor $\rho[\textbf{p}(y),\textbf{q}]$, how does $$\rho[\textbf{p}(y),\textbf{q}] \approx \frac{1}{2}\sum_m\sqrt{p_m(y_0...
I have this question : I should now calculate power of y[n], where the formula well in the power's formula N which constant goes to infinity how could this be ? i see in the question that N=7 which is constant,then should N or KN go to infinity ?
I want to apply the FastICA algorithm on a certain dataset. I believe the sources the Fast ICA can recover are able to explain other data as well (in similar way to factor analysis). However, I also believe the mean of the data contain valuable information. I was wondering if, after the prewhitening which removes the m...
How do I choose $\mu$ - a value of a step size for adaptation in a decision feedback equalizer (DFE) with adaptive reference control (ARC)? For a regular adaptive FIR filter an adaptation step depends on a variance of input, but DFE gets symbol values as input. Another problem is that DFE employs a sign-error LMS adapt...
it's my first time processing spectra from a black body radiation experiment, I'm using Python and having some troubles... I have this spectra with 2 peaks and uneven background noise which I want to normalize, I tried using specutils 1.1 "continuum-fitting" (documentation here: https://specutils.readthedocs.io/en/stab...
I had CDMA composite signal with 3 users. I assume that the signals are linearly sum together so for my maximum and minimum amplitude of composite signal are +3 and -3 respectively. Reference: import pylab as plt import numpy as np from numpy import fft def cconv(x, y): """Calculate the circular convolution of 1-...
How can the linear convolution be defined rigorously for two discrete signals $x = [x(0), …, x(N_x-1)]$ and $h = [h(0), …, h(N_h-1)]$ of different finite lengths $N_x$ and $N_h$ respectively? Let's assume for simplicity that $N_x = 3$ and $N_h = 2$, i.e. $x = [x(0), x(1), x(2)]$ and $h = [h(0), h(1)]$. Does the sum go ...
I'm trying to wrap my head around how to generate sine-waves out of a DAC near the Nyquist frequency (or determining how close I can get for reliable results). So if I want to generate a 499 Hz sine wave using a 1 kSPS DAC, I will calculate each sample: $$y(t) = \sin(2 \pi 499 \ t) $$ Converting this to discrete time: ...
I have to compute the cross-correlation between two transient signals, which could be decomposed into a trend (with non-zero mean value) + noise. In particular I am interested in the max of the cross-correlation. It seems that in MATLAB the cross-correlation is more accurate if it is calculated using the function xcov...
I am not familiar with raw IQ wave files. For tetra-1 signal, the bit rate is $36$ k bps (or $18$ k as the symbol rate). If the Fs saved in the .wav file is $48000$ Hz, what should be the SPS (sample per symbol)? Remember that if SPS is 4 for QPSK, then both I&Q components need to be upsampled by $4$. In this case, sho...
I'm working on using an FFT for frequency correction of a generic modulation signal. My algorithm basically attempts to balance the energy in the positive and negative frequencies of the FFT to be equal. One thing I'm wondering is if I have an inherent bias. Noting the following ordering returned by the bins of the FFT...
I have a high pass IIR filter with numerator b = [0.997688673703782,-1.995377347407564,0.997688673703782]; and denominator a = [1,-1.995372005171182,0.995382689643947]; the frequency response seems ok with fvtool(b, a). However, the response changes a lot after the coefficients are converted to fixed point numbers by...
I want to create some custom filters in Matlab filterDesigner tool and then apply those filters to a large set of audio files. I want to use python to do the application of the filters to the audios. I created a Butterworth filter in Matlab and exported it as an ASCII file. In there I get two datas. SOS Matrix and Scal...
I created a equiripple FIR filter in Matlab using filterDesigner and exported it to an ASCII file. The file contains the numerator values as a list of 51 numbers tagged under Numerator: (this is all the data the file has) Now I read this 51 values into a python array named num and try to recreate the filter in python u...
I'm reading a paper -- Common Randomness in Information Theory and Cryptograph-secret. And I do have trouble in understanding formula (2.6): $$ \frac {1}{n} H(K)> H-\epsilon \tag{2.6}\label{2.6}, $$ with $\epsilon>0$ some arbitrary number larger than the probability that two $K$ and $L$ aren't the same and $H$ being c...
I want to get frequencies from amplitudes and I'm following Chap 5.1.1 from Speech Signal Processing by Praat As the in pictures, I will multiply the signal $s(t)$ with the Hanning window $w(t)$, find its normalized autocorrelation $r_a(\tau)$, and divide by $r_w(\tau)$, which is the normalized autocorrelation of $w(t...
There is a nice paper on explaining DFT from the 1960s in IEEE A guided tour of the fast Fourier transform. The author uses the following definitions of DFT DFT $$ X(j)=\sum_{k=0}^{N-1} x(k) \exp \left(-i 2 \pi\left(\frac{j}{N}\right) k\right) $$ Inverse $$ x(k)=\frac{1}{N} \sum_{j=0}^{N-1} X(j) \exp \left(i 2 \pi\left...
I was reading a research paper on companding schemes for non uniform quantisation. In paper one of the motivations for non-uniform quantisation is that distortion at larger amplitude values is less audible than distortion in lower amplitude values but I can find why this happens?
If Laplace transform is expressed as : $$\int_{-\infty}^{+\infty} h(t)e^{-st}dt $$ with : $$s = \sigma + j\omega$$ and $h(t)$ an impulse response expressed as : $$h(t) = Ae^{-\sigma_0t}\cos(\omega_0t+\phi) = e^{-\sigma_0t}\cos(\omega_0t)$$ ($A=1$ and $\phi = 0$ for simplification, $h(t)=0$ if $t<0$) Then, each vertical...