Questions tagged [dft]

The Discrete Fourier Transform (DFT) is a mapping between a finite set of discrete points in a (primal) domain (time, space) and the dual frequency domain. DFT requires an input sequence which is discrete, such as a sampling from an analogue audio signal.

It it is commonly defined by the following summation:

$ X_k = \sum\limits_{n=0}^{N-1} x_n e^{-\frac{2i\pi}{N}kn} $

for $ k =0,1,..N-1 $.

It is invertible; the inversion is known as the IDFT (Inverse Discrete Fourier Transform) and is defined by the following summation:

$ x_n = \frac{1}{N} \sum\limits_{k=0}^{N-1} X_k e^{\frac{2i\pi}{N}nk}$

for $ n =0,1,..N-1 $.

It should not be confused with the , which is applied to an infinite set of discrete points, or the lesser-known , which is applied to continuous signals.

1100 questions
23
votes
2 answers

How can I compute a log-spaced power spectrum?

I would like to compute a power spectrum in which the frequencies are logarithmically spaced. In Welch's method there is a trade-off between the frequency resolution of the resulting power spectrum and the number of averages (i.e. error in the…
nibot
  • 3,803
  • 5
  • 29
  • 40
16
votes
3 answers

What is normalized frequency

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…
user6363
  • 333
  • 2
  • 4
  • 11
16
votes
3 answers

Real discrete Fourier transform

I am trying to understand the real DFT and the DFT and why the distinction exists. From what I know so far the DFT uses $e^{i2\pi kn/N}$ for basis vectors and gives the representation $$x[n]=\sum_{k=0}^{N-1}X[k]e^{i2\pi kn/N}$$ The sum is written…
user782220
  • 527
  • 1
  • 5
  • 8
10
votes
1 answer

What is the meaning of the DFT?

Possible Duplicate: Real Discrete Fourier Transform What is the most lucid, intuitive explanation for the various FTs - CFT, DFT, DTFT and the Fourier Series? Discrete-time Fourier transform I read about the Discrete Fourier Transform. I…
John Smith
  • 203
  • 1
  • 2
  • 4
9
votes
3 answers

Why do sinusoids have DFT magnitudes of N / 2 while we typically normalize by N?

I'm wondering why evaluating a sinusoid that matches one of the frequencies of the DFT basis functions has a magnitude of $N / 2$. Using this definition of the Discrete Fourier transform, it looks like this holds (I guess for non-zero $k$ and $N…
bluenote10
  • 605
  • 1
  • 5
  • 13
9
votes
1 answer

Matrix form of 2D-DFT for a vectorized image

I want to apply 2d DFT to a N by N image. However, image is vectorized such that it is NxN by 1. How can i find the matrix form of 2d DFT such that resulting vector from multiplication is the vectorized NxN by 1 2d DFT of my N by N image?
strahd
  • 159
  • 1
  • 6
7
votes
2 answers

Which unit does the power spectrum of microphone output have?

If I sample sound with a microphone and find the absolute square of the (non-normalized) DFT, I get the discrete power spectrum (correct me if I'm wrong). Which unit does it have?
Andreas
  • 1,968
  • 2
  • 22
  • 29
6
votes
7 answers

Why is frequency resolution dependent on the number of samples? (need for intuition)

I know the DFT, I agree with the formula and everything, but I don't get the intuition on the link between frequency resolution and number of samples. Like, why would I get a higher frequency resolution by taking more samples in my DFT? The formula…
Antoine101
  • 81
  • 4
5
votes
3 answers

Analysis frequency of the DFT?

So I'm reading Richard G. Lyons' book "Understanding Digital Signal Processing" and I've just started to make my way through the DFT chapter. While most of his examples and explanations make sense, I am a bit confused about one particular term he…
skippy130
  • 151
  • 1
  • 2
5
votes
1 answer

Time domain distortion vs Harmonics

I have a periodic time domain sensor signal sampled at $500 \text{ Hz}$ whose amplitude spectrum I compute and obtain. From the periodicity of the signal, I was expecting the fundamental frequency to be around $f = 1.2\text{ Hz}$, and this is what I…
Gilles
  • 3,386
  • 3
  • 21
  • 28
4
votes
3 answers

Inverse DFT: Is there a valid / intuitive interpretation of results for non-integral timestamps?

I implemented the plain DTF / inverse DFT algorithm in C++ in order to help me understand the method. As a sample input I considered f(x) = sin( x * PI / 5 ) and collected samples for x = 0, ..., 9. So my input data was (0, 0.58778, 0.951057,…
Eddie C
  • 43
  • 4
4
votes
4 answers

Do you know this phenomenon in DFT?

Please let me ask you about a phenomenon in DFT. Below DFT program outputs excellent results for low sample rates, but for high results are very bad. Specifically: for sample rate 50 samples/sec, segment 1000 samples, existing frequency 36.7634 Hz,…
4
votes
1 answer

Would it be feasible to implement the Sliding DFT on a digital signal processor?

The Sliding DFT generates the spectrum for every input sample. Using the FFT, the spectrum is generated only after a certain number of samples (N) are obtained. It appears to me as though the cycles to perform the Sliding DFT would be much larger…
Naveen
  • 53
  • 6
4
votes
2 answers

please give the reason why every notation for DFT is valid?

$X$ represents sample in frequency domain and $x$ represents samples in time domain. NOTATION 1 $ X[k] = \sum\limits_{n=0}^{N-1} x[n] \ e^{-j \frac{2\pi}{N} n k} $ $ x[n] = \frac{1}{N} \sum\limits_{k=0}^{N-1} X[k] \ e^{j \frac{2\pi}{N} n k}…
4
votes
1 answer

Why is X(0) the DC component

Why exactly is X(0) the DC component of a signal? How is it equal to N times x(n)'s average value and why it is at X(0)?
some_id
  • 679
  • 11
  • 18
1
2 3 4 5 6 7