instruction
stringlengths
31
27k
I need to calculate the output power spectral density of the following digital filter My calculations are as follows: $y\left(n\right)\:=\:x\left(n-1\right)+d\left[x\left(n-1\right)+x\left(n\right)\right]$ $Y\left(z\right)\:=\:X\left(z\right)z^{-1}+d\left[X\left(z\right)z^{-1}+X\left(z\right)\right]$ $Y\left(z\right)\...
I am a scientist at Indian Space Research Organization (ISRO) and will be representing my team. We work on Telemetry and Data Handling units for our Launch Vehicles. We are preparing for our upcoming SSLV Launch (Small Satellite Launch Vehicle) and need some information to confirm if we are at par with the industry, or...
I am reading about symbol rate recovery and there is a term that I didn't grasp - 'decision directed' TED. Can somebody explain what does it mean or provide me with accurate reading? Thanks
If it does, $$\int_{-\infty}^{\infty} \cos(bt)\,u(t)e^{-j\omega t} dt = \int_{0}^{\infty} \cos(bt)\,e^{-j\omega t} dt = \int_{0}^{\infty} \frac{e^{jbt} + e^{-jbt}}{2}\,e^{-j\omega t} dt$$ Then how do we carry on from this point? $$ \frac{1}{2} \int_{0}^{\infty} \left[e^{j(b-\omega )t} + e^{-j(b+\omega )t}\right]dt$$ Th...
I am after a simple, yet effective, Image Edge Preserving Filter. I need something which is faster than the Bilateral Filter with similar quality (The Guided Filter isn't good enough). Are there such algorithms?
I am trying to detect the envelope of a high-frequency signal (similar to below) using Matlab Hilbert function This is my output It generally follows the envelope, but there is a high-frequency ripple in the envelope, see zoomed version below Here is my code: t =out.tout'; x =out.Itxmod'; y = hilbert(x); env = abs(...
I have a machine learning algorithm that takes speech sample audio recordings collected from mechanical Turk. During processing it was shown that some audio from certain OS/microphone devices have been preprocessed by noise suppression algorithm by default which affects the results I am getting. As part of my writeup I...
The literature on compressive sensing (CS) frequently notes that CS relies on two principles: sparsity and incoherence. While I understand why the signal of interest should be sparse in some domain since CS relies on minimizing the norm, incoherence is much fuzzier to me. While equations exist that quantify the incoher...
I am running continuous wavelet transform in mexican hat wavelet basis on a data set (with millions of samples) using pywavelets. The command used is pywt.cwt(data, scales, wavelet). It works well for scales less than or equal to 64 but above 64 I am getting 0 as output for all coefficients. Any idea what is happening ...
My professor mentioned that the order of a band-pass and a notch filter must always be even, when showing an example of designing a digital filter using the bilinear transformation. Then he also mentions that the MATLAB code ellipord returns half the actual order, so I figured the two statements must be connected someh...
I'm developing a song synthesizer (like Yamaha's Vocaloid). I decided to mimic the acoustics of human speech. I modeled the space between articulators as a solid of revolution, and came up with the following PDE: $$ (PA)_{tt} = c^2 (P_x A)_x $$ where $P$ is air pressure (difference to the atmosphere; unknown), $A$ is c...
I have an IF data, 2 seconds signal sample from only one GPS satellite, I know the PRN number of the satellite. IF Freq = 4.092e6 Hz Sampling Freq = 16.368e6 Hz IF data length = 2 seconds Total sample = 32.736e6 During the first second period, there is no noise, and SoftGNSS SDR can acquire and begin tracking the sign...
I have recorded an audio. I dont know how it happened that only one sided speech is recorded and the other speech is recorded with a very low sound. Is there any solution to amplify the other side signal. I have tried to amplify with AVS software but its also ampliying the noise in the audio. any help would be much ap...
I wonder why the phase range in DSP applications is between $-\pi$ and $+\pi$. For example, why is that not between $0$ and $2\pi$? This question popped when I was reading about synchronization in digital communications. It said instead of $\arg( Im(x) / Re(x) )$ we can use just $Im(x)$ because they are of the same sig...
Typically the phrase "time domain" implies an analog signal x(t), but I've also seen it referring to a digital signal x[n]. Is there any phrase that refers to x[n], but not x(t)?
I am making a music app and I want to put a noise generator in it. The problem is the usual white, pink noise is just too boring and not useful for the user. Pioneer mixers has an amazing noise generator. Check it here. I want to generate something like this but obviously I have no idea how could such noise can be gene...
Here's my basic understanding of how to implement a convolution reverb: I measure the IR of a space using a sine sweep. The raw mic output is stored as a Voltage-Time data set. Let's assume that this recording is 5s long. I run a fft on the recorded mic output to derive the Mag and Phase at every frequency bin. Call ...
I have a system with the transfer function given in this MATLAB code num = [-2.341e07 -2.478e10 -1.393e12 -2.58e13 - 1.027e14 1.689e15 1.474e16 2.227e16]; den = [1 2474 1.451e06 2.622e08 1.544e10 6.874e11 2.656e13 5.294e14 4.09e15 8.13e15 3.771e15 1.122e13]; G2 = tf(num,den); The system has 2 poles and 1 zero in the R...
I'm trying to solve the following problem where I need to express $x(t)$ in terms of the given $φ_i(t)$ functions. (It is proven that the $φ_i(t)$ functions are orthonormal).: Here's what I tried: In order to find the coefficients, the following definition of the geometric representation of a signal was used. (Simon...
I have a confusion regarding time scaling of discrete time signals. Let u[n] be the discrete time unit step signal(or sequence) Now if i plot u[n/3] i know there will be two zeros added between each previous samples(samples before scaling). But when i tried plotting the same on MATLAB i got the same plots for u[n] and ...
Is the modulation method, or nature of modulation otherwise, between my phone and my WiFi modem, versus my phone and a cellular mast, different?
Suppose there are two linear devices (containing some multi-physics but the details don't matter here), and these devices are given to us as two black boxes that can be studied experimentally. Black box #1 takes signal X as input and produces signal Y as output. Black box #2 takes signal Y as input and produces signal ...
I am reading a chapter on VCO noise in "Design of CMOS phase-locked loops from circuit level to architecture level by Behzad Razavi";I am confused when the upconverted noise is writen as $N_I\cos\omega t - N_Q\sin\omega t$, which means the baseband noise(complex envelope of the upconverted noise) have a form of $N_I+jN...
I have this code which interprets a few data points on magnetic field strength into a spectrum, as shown below: c = fft(magfield); c = c*2/n; ca = abs(c); dt = 1/fs; f = (0:n-1)/(500*dt); for i = 1:length(ca) if ca(i) > 0.002608 ca(i) = 0; end end spectrum = fftshift(ca); plot(spectrum) Where f...
suppose I have the following discrete time signal $x\left(n\right)=0.7\sin\left(2\pi \times 623\:nT\right)$ where $N=4000$ and $T=\frac{1}{f_s}$, where $f_s=40$ kHz I pass this signal through a simple IIR filter $ H\left(z\right)\:=\:\frac{0.2}{1-0.3z^{-1}}$ I calculate the power of the ouput signal $P_y\:=\:P_x\:\left...
I would like to know the algorithm for how centre channel is derived from rejecting left and right channel in audio upmixing process. Can someone explain intuitively rather than hard hitting mathematical equations to describe the derivation process ...
Why does each node in the wavelet scattering transform split into multiple paths as in this figure from Deep Scattering Spectrum? I understand roughly what’s happening along a single path, but I don’t understand why each node splits into three.
Why do people say that the fast Fourier transform (FFT) “views”, or “interprets”, or “assumes” its input sequence is periodic? I ask this question because the activities of viewing, interpreting, and assuming can only be performed by a living creature with a brain.
What are some good books and videos, to learn about radio waves? For someone (me) who has never studied Math, Physics, or anything people generally consider ‘technical’.
i just wondering, why we always transmit a real signal but when we deal with a baseband signal we use a complex signal ? are this is related to up and down conversion of the signal (Because complex signal doesn't have symmetric properties when using FFT)
I am really new to FFT and signal processing. I am doing an analysis of square waves with FFT and I am trying to understand why the FFT output on the frequency domain has a downward slope for square waves. Specifically: Why in FFT output for a square wave, bin 0 has the highest amplitude and bin 1 has the second highe...
What is the purpose and advantage of using a checkerboard than a 3D calibration object for camera calibration ? With a 3D calibration object (e.g. a transparent cuboid like a table), I can take one image with a camera, then find the corners of the cuboid, which gives me 8 2D-3D correspondences. Since a projective came...
For a first approach on audio-sampling I'm currently working with the raspberry pi's pcm pins and MEMS-microphones, using the ALSA library. A problem arises when I want to calculate dBFS from a buffer's rms-value because i have to assume that a sample can be as big as (2^32)/2. In order to obtain rms, I would have to s...
for an internship I have to create a communication between 2 devices at 30Khz. we choose a BPSK modulation. I create du Tx with a stm32 and a DDS (AD9834). Now I trying to code the demodulation with a L476 nucleo. and I have some issue. now I have and acquisition of my signal using ADC (and DAC to see it). But I don't ...
How to reduce the transmit power of the signal to maintain a fixed BER in CDMA ? I am thinking noise power spectral density, signal energy , and signal rate.
I have performed a STFT for signals and obtained the amplitude through S = librosa.stft(y=y_cut,n_fft=n_fft,win_length=n_fft,hop_length=n_fft,window='hann',center=False) Here i have 4097 rows for S (1 + NFFT/2) and 12 colums (time periods). I want to obtain the PSD from this. PSD is the square of magnitude, but I have...
I am relatively new to signal processing, and have always used MATLAB's designfilt option for my signal processing needs. Recently, however, I have seen people just using MATLAB's butter function. We all primarily just analyze EEG signals. I am just curious as to what makes them do this, as I currently don't see a m...
I am working on a problem that produces different types signals, and I need to detect the peaks after low-pass filtering, then find_peaks from scipy. For example, the one below: I am however faced with some signals that have an impulse shape, as in: or, Filtering such signals destroys the peaks' locations, and somet...
I have a DSP exam coming up this summer and I got an abysmal mark on an assignment earlier this year. Obviously, the lecture slides are not enough for me to understand DSP, so I am wondering where can I go to form an understanding of DSP from the ground up. The topics are purely math-based and do not include any progra...
I have a samples prerecorded by a radio device. Samples are not in baseband, contain large DC component and include only one channel (written in int32 format). My goal is to move it to the baseband, remove the DC spike and perform Hilbert transform to make it complex for further processing. My question is, what is the ...
This is a question related to this previous question "I cannot find reference (paper) of this relation $u(t)t^{α} ↔^{FT} f^{-(α+1)}$". The signal that I work with g(t), is the time history of a velocity component flucutuations. This signal comply with the rule: $\bar{g}=lim_{T->+\infty}\int_{0}^{T}g(t)dt=0$ The Power s...
What is difference between measurement and input vector in Extended Kalman Filter? Isn't always input also measurement? If so how to update input vector if I have acceleration or yawrate as input vector and they aren't constant.
I was thinking a little about how signal phase might be distributed. Usually in such discussions I see people make the assumption that phase is uniformly distributed between $0$ and $2 \pi$. This only makes sense to me if its a statement about our ignorance of the system in question. That is, if we don't know anything ...
In a recent comment (as I understand it) our colleague OverLordGoldDragon’s stated that the only restrictions on DFT input sequences, to produce valid DFT spectral results, are that (1) the input sample values must be finite in amplitude and (2) finite in length. That sounds sensible to me. Are there are other restrict...
I am working on a little project, and stumpled upon something I cannot understand yet. I am learning cognitive science, and don't have DSP knowledge background, only learning from what I find on the internet. I have got an 46380x1 double array, which contains my signal. I would like to draw a nice spectrogram out of it...
Given some neurophysiological application I am filtering in real time data of limited length (e.g. in epochs of 100 ms) using a sampling rate of e.g. 100 Hz. Due to this short time segment I am trying to implement a FIR filter. This filter should be of high order, and therefore have a length of more than 100 samples. T...
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 Neighbours algorithm and Lowe's Ratio technique. But there are still some outliers as shown in this image : I have found out a...
I've been trying to work out a way to minimize the error in phase calculation. The underlying model is the following $$s(t) = \sum_{i=1}^{M} A_i\sin\left(\frac{2\pi t}{T_i} + \phi_i\right) + \epsilon_t,$$ where $\epsilon_t\sim N(0,\sigma^2)$. I'm assuming that the nature of an arbitrary signal (without linear trend) ma...
When conv2d is on same mode, the image needs no padding, because the result is the same size as the image. When conv2d is on full mode, the result is (image_width + kernel_width -1) * (image_height + kernel_height -1). Then how do I pad the image?
We were being taught the impulse response for a series RC Circuit- consisting of simply one resistance, one capacitor, and an impulse excitation all in series. I get that the homogeneous part of the solution will be of the form: $$x(t) = Ke^{\frac{-t}{RC}}$$ And we can find the value of $K$ using the initial conditions...
I am trying to minimise the noise in a spectrum of a variable. I have divided the time history in equal parts, I have multiplied every part of the time history by a Tukey window, done a FFT of each one of this window. After this procedure I have an adequate signal, I have a question: Should I compensate the energy lost...
I'm looking for the correct temperature compensation equation to use on our project. We are measuring the output of a detector who's signal is very sensitive to temperature drift. Any external Temperature drift is reflected in the output. A cycle due Day/night variation is typically what we see. So, we apply a formula ...
I am trying to get the frequency response of a system, so, in theory I would need to do: H = fft(y)./fft(x); I have measured the system with a long stepped sine log sweep four times as I am planning to perform a spectral averaging to improve my SNR. This gives me a total of almost 5.000.000 samples per file. I have ca...
I'm trying to calculate a moving RMS of an acceleration signal. One of the answers in the post, shows the formula for calculating moving RMS for discrete signal. The formula they suggest: I have a few questions on this formula. Since $i$ would be, for most part of the summation, less than $N$(no of samples), therefore...
I try to understand how the Fourier transform changes when I try to compute $X(\omega)$ or $X(f)$. Can someone work me through the maths please for two examples, $x(t) = \exp(j\omega_0 t)$ and $x(t) = \cos(\omega_0t)$. I know what their Fourier transform is in terms of $\omega$ but when I try to compute $X(f)$ from fir...
I am working on kind of signals that can be classified as 1/f Noise. In this article is explained that the time history of 1/f noise follows a power law proportional to $t^{-\alpha}$. I am very surprised about this, because when I think to this kind of signal histories, they do not seems to me proportional to $t^{-\alp...
If I have a sine signal that was composed of the sum of multiple other sine waves, is there any way that i can decompose the sine signal into its component sine waves without knowing any of the component sine waves or how many sine waves were summed to get the signal? For example, if I create a signal be summing the fo...
I have an aperiodic signal of an s-shape in the time-domain that I would like to filter and calculate the derivative of using the FFT. The jump at the end of the s-shape has, of course, a strong influence on the obtained amplitude spectrum. I am trying to eliminate the influence of the jump without giving less weight t...
I hold a master's degree in mechanical engineering. However at my job I am more and more diving into topics of signal processing and data science. I find it great to discover about new topics and to learn on the go as I work on projects. During my study I had some basic courses on which I can build on. But sometimes I ...
I understand how to extract rotation and translation from the essential matrix. However, I did not find anything about obtaining the rotation, translation, (and also the calibration matrix) from the fundamental matrix. Can someone explain to me how to do that? So given $E = [t_x] R,$ I know how to extract $[t_x]$ and ...
Hi All: This is very basic but I've always wondered about it and now I see it in print in a textbook so I may as well ask. In Signals and Systems on page 26, it says $$e^{j(\omega_0 + 2\pi)n} = e^{j2\pi n} e^{j\omega_0 n} = e^{j\omega_0 n} \tag{1.51} $$ Then it says: From eq. (1.51), we see that that the exponenti...
BACKGROUND: This question is attempting to consolidate material discussed in two previous topics. These are: Understanding the H1 and H2 estimators @Pontus S Frequency-domain deconvolution: "Direct" filtering vs "Wiener" filtering I am estimating Complex Frequency-Domain Transfer Functions. I will call the frequency-do...
I have a series of data containing 120,000 points. The mean of each N(=60) point is zero. I want to forecast the next 60 points using the ARMA model. My question is, specificaly, how to choose the appropriate model parameters (p and q) and the size of the training set. Particularly, I run the ADF Test while providing ...
I'm studying image denoising by linear filtering with cross-correlation, in particular with a moving-average kernel (K x K kernel of all equal elements which sum is 1). For clarity, I'd like to refer to 1D moving average filters (and the 2D extension is just done by using 2D Fourier transforms): I read the dsp SE answe...
I have known discrete-time IIR filter. I pass a signal x(n) through the filter and obtain the output y(n). How would I design a filter to obtain x(n) from y(n)? In general, is it possible to design such a filter? If not then under what conditions is it impossible to retrieve the input x(n)?
There is an implant in me, is there a way to identify the frequency it is receiving signals on? I don't want to share the evidence and my reasoning for believing there is an implant in me, you can either take my word for it or not. I want to find the frequency it is receiving signals on, so far I have used dvb-t dongle...
I have created a basic segmentation algorithm for 1-D signals (e.g. audio) based on a ratio of energy averages. The classification rule involves comparing the signal energy measured over a short time window divided by that over a longer window, with a fixed threshold. More precisely, if $x[n] > 0$ is the instantaneous ...
I see no difference in magnitude, but the phase plots vary significantly while using NumPy and MatPlotLib to plot. Looking at the phase plots, I feel like I'm missing something important. Also, I'm a relative newcomer to the field of DSP, so if it's something obvious, even then please explain it as an answer rather tha...
I am learning about OFDM, and in my reading, I have noticed that (mentioned everywhere) synchronization is a very critical aspect of OFDM. Here, I am writing in the context of time synchronization (time offset). What I understood that time offset is important if there are multiple transmitting mobiles in a cell, and du...
My objective is to demodulate QPSK signal. At this moment, my constellation in the best case looks like in the picture below: and the corresponding eye-pattern: Eyes are completely closed, which implies large ISI. To remove this, I apply RRC filter with the roll-off factor as at the transmitter side. Other parameters...
The reason we do the STFT is so that we can analyse for short segments of time how much of the components in the frequencies of the FT are present. However, it may be possible that completely different frequencies are used to approximate the curve in this window that were used by the FT for the global curve. In this ca...
If I want to remove the baseline drift in my ECG signal, which digital filter should be used without distortion and shift in my filtered output? What are the necessary things I have to look for the proper type of filters (like Chebyshev, Butterworth filter, etc)?
Can anyone explain what is meant by "Omega suppression" in lock-in amplifier discussions or specifications. I'm usually very good at web-searching, but have been unable to find anything that explains rather than mentions this term. I find it mentioned in some manuals but never explained. Omega and 2 Omega sound like fu...
Shannon's version of the sampling theorem states that if a function contains frequencies all strictly less than $B$ hertz, then it is completely determined by giving its ordinates at a series of points spaced $\frac{1}{2B}$ seconds apart. Now, let us suppose we are talking about just one frequency (say a laser with fre...
I have a bandlimited analog signal for which I want to find the peak value in real time. The signal is sampled and processed digitally at just enough sampling rate. Since the peak of the analog signal may not be sampled exactly, taking the maximum of the digital samples would give a lower than actual value. So how do I...
If you take the derivative of an audio signal, it provides a 6 dB/oct upward sloping filter (increasing high frequencies / cutting low frequencies) all the way across the spectrum. What is the result in terms of the phase? Is there phase rotation? Is it uniform across the spectrum or does it vary with frequency? What w...
I have to estimate biases of a 3-axes accelerometer by modyfying an existent kalman filter mounted on a drone. The biases are assumed constant. The filter has 9 states: position (xyz), velocity (xyz) and acceleration (xyz) in navigation frame and no inputs. Measurements are taken from GPS, IMU and baro. An ahrs filter ...
Assuming we have an audio with noise embedded in it, I was wondering what happens theoretically if we remove (filter out) too much frequency when we pass LPF with a cutoff frequency lower than the perfect cutoff frequency needed to reconstruct the signal perfectly? Practically after performing the necessary computation...
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 $\mathcal{O}([N//2 + 1]\log N)$ = $\mathcal{O}\left (\frac{N}{2}\log N \right )$ Question: What about iRFFT? Is it $\mathcal{...
The Nyquist theorem states that the sampling rate must be twice the highest frequency to be observed. How does the length of the interval play into this relationship? The main resource that I found here states that For a waveform to be fully characterized, it must complete at least one full cycle within the duration o...
The signal from the speaker on device A gets into the microphone from device B, then the amplifier and then the speaker from device B, back into device A. The result is a sort of runaway signal that is always reamplifying itself? Why can't I create a sort of closed loop system when I have nearby microphones? What would...
I've been studying communications and i see that the book used the symbol $u_{-1}(t)$ for unit step function , why ?
I am trying to measure temperature with the MLX90614 BCC IR sensor for my project, and I am having problems with my precision requirement. I had taken data for 1 second then took the mean of these values. I measured the hand of a human, which was 36.2°C. I took measurements for different distances also like 1 cm, 3 cm...
What is the purpose of Balance / Fader in a digital Audio amplifier? In a signal flow what is the most apt position to place balance and fader(for example after before a compressor unit or at the starting of the signal flow or at the end of signal flow) and why?
I am using sine signal with phase=0 an frequency=100KHz. Computed FFT of it. Using angle function and multiplied the result with 180/pi; But getting 90.36 at 100KHz frequency. Can anybody explain why I am getting 90 degree instead of 0 degree?
if I have an analog modulated signal with a DSBSC modulation (modulation index 100%) as an input in my receiver and I want to convert it to a sampled signal, do I need to demodulate the signal (with coherent detector) and then sample it ? Or the other way around? I know that from the front end of the receiver you have ...
In “traditional” digital signal processing, the complexity is computed as a number of multiplication the operation requires, e.g. the computation of the N-point DFT via the decimation-in-frequency FFT requires (N/2)log_2(N) complex multiplications (and the same number of additions, but in the DSP the additions are assu...
I hope i can make myself clear enough, even though i might not be familiar with the right terms. Using GNU Radio, i created a chirp signal with a sawtooth signal source into a frequency mod block, as seen below. The Cosine into the multiplier i added so i could move the chirp within the baseband, later on. This IQ file...
Can someone tell me what is the purpose of CAR Equalization in audio and why before CAR Equalization ,gain adjustments are necessary ? Also why would someone use FIR filters during CAR Equalization process Can someone answer this please ?
This is my first attempt at using GNU Radio. I am trying to do this example, which is a sine wave generator. The example works, so I am trying to connect the throttle block to the audio sink block. I am getting an error that doesn't seem to match up with any of the options in the blocks. The error is Source IO si...
I have a vector v1 of size N1, I want to pad it in a certain way until it reaches a size power of 2 (v2 of size N2). I need that the first N1 coefficients of the FFT output to stay the same as when I would apply FFT(v1), is that possible? If so, how to?
I am trying to implement a CIC filter and was reading through the literature and found that CIC filter cannot be implemented using floating point. I am unable to understand why that would happen. The reasoning that is given everywhere seems to be that the integrators are not stable when using floating point but I am no...
I am adding sine signals with different frequencies but same amplitude=100. Sampling frequency is 50MHz. I am not getting 100 in frequency domain for frequency 787KHz. At 1K, 3K I am getting 100 amplitude, but at 787KHz I am getting 75.9 . All the signals have 100 V amplitude. Any reason for this?
Lets say I have a small size vector x=[a b c d]. Now I stretch this vector 3 times and I got x3=[a a a b b b c c c d d d]. What would be the relation between fft(x) and fft(x3)?
I'm filtering respiration signal. I have a signal of duration equal to 10 minutes, so I decided to divided it into period of 10 s. I filtered each epoch with FIR filter, but I have discontinuities each 10s. I attached an example. I can not filter all the signal at once by the theory, so how can avoid discontinuity?
I have a signal that I STFT and then filter using an ERB spaced filterbank. At some point after this I want to get the signal back into the time domain, how can I go about this? Using a standard iSTFT function won't work because it assumed linearly spaced frequency bins, AFAIK? I've put a code snippet below. I'm also n...
I'm trying an alternative method to the classical fft to do signal analysis. I perform root-MUSIC on a certain known signal + noise in matlab with the function 'rootmusic'. This gives gives the signal in radians/sample. This can then be converted to a frequency of a signal and at first sight it looks promising. My ques...
I'm using multisine but recommended to use quasi log frequency distribution to find out FFT. What is the advantage of using this?
For the 1D cosine transform the documentation is clear in here, and I can reproduce it easily: The formula is: $$y_k= 2 \sum_{n=0}^{N-1}x_n \cos \left( \frac{\pi k(2n + 1)}{2N}\right)$$ and here it is reproduced manually, for example for the third harmonic: import numpy as np from scipy.fft import fft, dct y = np.arra...
Why compressing a train of impulses in time domain produce a wide-spaced train of impulses in frequency domain and vice versa? i want to know the intuition behind that.