Difference between revisions of "Applets:Discrete Fouriertransform and Inverse"

From LNTwww
 
(20 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
==Applet Description==
 
==Applet Description==
 
<br>
 
<br>
The conventional Fourier Transform&nbsp; $\rm (FT)$&nbsp; allows the calculation of the spectral function&nbsp; $X(f)$&nbsp; of a time continuous signal&nbsp; $x(t)$.&nbsp;  
+
The conventional&nbsp; &raquo;Fourier Transform&laquo;&nbsp; $\rm (FT)$&nbsp; allows the calculation of the spectral function&nbsp; $X(f)$&nbsp; of a time-continuous signal&nbsp; $x(t)$.&nbsp;  
  
In contrast, the Discrete Fourier Transform&nbsp; $\rm (DFT)$&nbsp; is limited to a time discrete signal, represented by&nbsp; $N$&nbsp; time domain coefficients &nbsp; $d(\nu)$&nbsp; with indices&nbsp; $\nu = 0, \text{...} , N\hspace{-0.1cm}-\hspace{-0.1cm}1$, which can be interpreted as equidistant samples of the time continuous signal&nbsp; $x(t)$.
+
In contrast,&nbsp; the&nbsp; &raquo;Discrete Fourier Transform&laquo;&nbsp; $\rm (DFT)$&nbsp; is limited to a time-discrete signal,&nbsp; represented by&nbsp; $N$&nbsp; time domain coefficients &nbsp; $d(\nu)$&nbsp; with indices&nbsp; $\nu = 0, \text{...} , N\hspace{-0.1cm}-\hspace{-0.1cm}1$,&nbsp; which can be interpreted as equidistant samples of the time-continuous signal&nbsp; $x(t)$.
  
If the&nbsp; [[Signal_Representation/Discrete-Time_Signal_Representation#Sampling_theorem|"sampling theorem"]]&nbsp;  is fulfilled, the DFT algorithm likewise allows the calculation of&nbsp; $N$&nbsp; frequency domain coefficients&nbsp; $D(\mu)$&nbsp; with indices&nbsp; $\mu = 0, \text{...} , N\hspace{-0.1cm}-\hspace{-0.1cm}1$.&nbsp;  These are equidistant samples of the frequency continuous spectrum&nbsp; $X(f)$.
+
If the&nbsp; [[Signal_Representation/Discrete-Time_Signal_Representation#Sampling_theorem|&raquo;sampling theorem&laquo;]]&nbsp;  is fulfilled, the DFT algorithm likewise allows the calculation of&nbsp; $N$&nbsp; frequency domain coefficients&nbsp; $D(\mu)$&nbsp; with indices&nbsp; $\mu = 0, \text{...} , N\hspace{-0.1cm}-\hspace{-0.1cm}1$.&nbsp;  These are equidistant samples of the frequency-continuous spectrum&nbsp; $X(f)$.
  
*The applet illustrates the properties of the&nbsp; $\text{DFT:}\hspace{0.3cm}d(\nu)\hspace{0.1cm} \Rightarrow \hspace{0.1cm} D(\mu)$&nbsp; by using the example&nbsp; $N=16$.&nbsp; The default &nbsp; $d(\nu)$&ndash;assignments '''KORREKTUR: &nbsp; $d(\nu)$ assignments''' for the DFT are:  
+
*The applet illustrates the properties of the&nbsp; $\text{DFT:}\hspace{0.3cm}d(\nu)\hspace{0.1cm} \Rightarrow \hspace{0.1cm} D(\mu)$&nbsp; by using the example&nbsp; $N=16$.&nbsp; The default &nbsp; $d(\nu)$ assignments for the DFT are:
  
:(a)&nbsp; According to the input field,&nbsp; (b)&nbsp; Constant signal,&nbsp; (c)&nbsp;  Complex exponential function (of time),&nbsp; (d)&nbsp;  Harmonic oscillation (with &nbsp;$($Phase &nbsp;$\varphi = 45^\circ)$,
+
: $\rm (a)$&nbsp; According to the input field,&nbsp; $\rm (b)$&nbsp; Constant signal,&nbsp; $\rm (c)$&nbsp;  Complex exponential time function ,&nbsp; $\rm (d)$&nbsp;  Harmonic oscillation&nbsp; $($with &nbsp;phase &nbsp;$\varphi = 45^\circ)$,
:(e)&nbsp; Cosine signal (one period),&nbsp; (f)&nbsp; Sinusoidal signal (one period),&nbsp; (g)&nbsp;  Cosine signal (two periods),&nbsp;(h)&nbsp;  Alternating time coefficients, (i)&nbsp; Dirac impulse,&nbsp;
+
: $\rm (e)$&nbsp; Cosine signal&nbsp; $($one period$)$,&nbsp; $\rm (f)$&nbsp; Sinusoidal signal&nbsp; $($one period$)$,&nbsp; $\rm (g)$&nbsp;  Cosine signal&nbsp; $($two periods$)$,&nbsp; $\rm (h)$&nbsp;  Alternating time coefficients,  
: (j)&nbsp; Rectangular impulse,&nbsp; (k)&nbsp;  Triangular impulse,&nbsp; (l)&nbsp;  Gaussian impulse.
+
: $\rm (i)$&nbsp; Dirac delta impulse,&nbsp; $\rm (j)$&nbsp; Rectangular pulse ,&nbsp; $\rm (k)$&nbsp;  Triangular pulse,&nbsp; $\rm (l)$&nbsp;  Gaussian pulse.
 
+
 
*Possible &nbsp;$D(\mu)$&ndash;assignments '''KORREKTUR: &nbsp;$D(\mu)$ assignments''' for the Inverse Discrete Fourier Transform &nbsp; &rArr; &nbsp; $\text{IDFT:}\hspace{0.3cm}D(\mu)\hspace{0.1cm} \Rightarrow \hspace{0.1cm} d(\nu)$&nbsp;  are:
+
*Possible &nbsp;$D(\mu)$ assignments for the Inverse Discrete Fourier Transform &nbsp; &rArr; &nbsp; $\text{IDFT:}\hspace{0.3cm}D(\mu)\hspace{0.1cm} \Rightarrow \hspace{0.1cm} d(\nu)$&nbsp;  are:
 +
 
 +
: $\rm (A)$&nbsp; According to the input field,&nbsp; $\rm (B)$&nbsp; Constant spectrum,&nbsp; $\rm (C)$&nbsp;  Complex exponential function (of frequency),&nbsp; $\rm (D)$&nbsp;  Equivalent to setting&nbsp; $\rm (d)$&nbsp; in the time domain,
 +
: $\rm (E)$&nbsp; Cosine spectrum&nbsp; $($one frequency period$)$,&nbsp; $\rm (F)$&nbsp; Sinusoidal spectrum&nbsp; $($one frequency period$)$,&nbsp; $\rm (G)$&nbsp;  Cosine spectrum&nbsp; $($two frequency periods$)$,&nbsp;
 +
: $\rm (H)$&nbsp;  Alternating spectral coefficients,&nbsp; $\rm (I)$&nbsp; Dirac delta spectrum,&nbsp; $\rm (J)$&nbsp; Rectangular spectrum,&nbsp; $\rm (K)$&nbsp;  Triangular spectrum,&nbsp; $\rm (L)$&nbsp;  Gaussian spectrum.
  
:(A)&nbsp; According to the input field,&nbsp; (B)&nbsp; Constant spectrum,&nbsp; (C)&nbsp;  Complex exponential function (of frequency),&nbsp; (D)&nbsp;  Equivalent to setting (d) in the time domain,
 
:(E)&nbsp; Cosine spectrum (one frequency period),&nbsp; (F)&nbsp; Sinusoidal spectrum (one frequency period),&nbsp; (G)&nbsp;  Cosine spectrum (two frequency periods),&nbsp;
 
:(H)&nbsp;  Alternating spectral coefficients, (I)&nbsp; Dirac spectrum,&nbsp; (J)&nbsp; Rectangular spectrum,&nbsp; (K)&nbsp;  Triangular spectrum,&nbsp; (L)&nbsp;  Gaussian spectrum.
 
  
The applet uses the framework  &nbsp;[https://en.wikipedia.org/wiki/Plotly Plot.ly].
+
The applet uses the framework  &nbsp;[https://en.wikipedia.org/wiki/Plotly &raquo;Plot.ly&laquo;].
  
  
Line 30: Line 31:
 
===Arguments for the discrete realization of the Fourier transform===
 
===Arguments for the discrete realization of the Fourier transform===
  
The&nbsp; '''Fourier transform'''&nbsp; according to the conventional description for continuous-time signals has an infinitely high selectivity due to the unlimited extension of the integration interval and is therefore an ideal theoretical tool for spectral analysis.
+
The&nbsp; &raquo;'''Fourier transform'''&laquo;&nbsp; according to the conventional description for continuous-time signals has an infinitely high selectivity due to the unlimited extension of the integration interval and is therefore an ideal theoretical tool for spectral analysis.
  
If the spectral components&nbsp; $X(f)$&nbsp; of a time function&nbsp; $x(t)$&nbsp; are to be determined numerically, the general transformation equations  
+
If the spectral components&nbsp; $X(f)$&nbsp; of a time function&nbsp; $x(t)$&nbsp; are to be determined numerically,&nbsp; the general transformation equations  
 
   
 
   
 
:$$\begin{align*}X(f) & =  \int_{-\infty
 
:$$\begin{align*}X(f) & =  \int_{-\infty
  }^{+\infty}x(t) \cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi f t}\hspace{0.1cm} {\rm d}t\hspace{0.5cm} \Rightarrow\hspace{0.5cm} \text{Inward transformation}\hspace{0.7cm} \Rightarrow\hspace{0.5cm} \text{First Fourier integral}
+
  }^{+\infty}x(t) \cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi f t}\hspace{0.1cm} {\rm d}t\hspace{0.5cm} \Rightarrow\hspace{0.5cm} \text{Forward transformation}\hspace{0.7cm} \Rightarrow\hspace{0.5cm} \text{First Fourier integral}
 
  \hspace{0.05cm},\\
 
  \hspace{0.05cm},\\
 
x(t) & =  \int_{-\infty
 
x(t) & =  \int_{-\infty
Line 43: Line 44:
  
 
are unsuitable for two reasons:
 
are unsuitable for two reasons:
*The equations apply exclusively to continuous-time signals. With digital computers or signal processors, however, only discrete-time signals can be processed.
+
*The equations apply exclusively to continuous-time signals.&nbsp; With digital computers or signal processors,&nbsp; however,&nbsp; only discrete-time signals can be processed.
 +
 
 
*For a numerical evaluation of the two Fourier integrals it is necessary to limit the respective integration interval to a finite value.
 
*For a numerical evaluation of the two Fourier integrals it is necessary to limit the respective integration interval to a finite value.
  
Line 50: Line 52:
 
$\text{This results in the following consequence:}$&nbsp;
 
$\text{This results in the following consequence:}$&nbsp;
  
A&nbsp; '''continuous signal'''&nbsp; must undergo two processes before the numerical determination of its spectral properties, viz.
+
A&nbsp; &raquo;'''continuous-time signal'''&laquo;&nbsp; must undergo two processes before the numerical determination of its spectral properties, viz.
*&nbsp; '''sampling'''&nbsp; for discretization, and
 
*&nbsp; '''windowing'''&nbsp; to limit the integration interval.}}
 
  
 +
*&nbsp; &raquo;'''sampling'''&laquo;&nbsp; for discretization,&nbsp; and
  
In the following, starting from an aperiodic time function&nbsp; $x(t)$&nbsp; and the corresponding Fourier spectrum&nbsp; $X(f)$,&nbsp; a discrete-time and discrete-frequency description suitable for computer processing is presented.
+
*&nbsp; &raquo;'''windowing'''&laquo;&nbsp; to limit the integration interval.}}
 +
 
 +
 
 +
In the following,&nbsp; starting from an aperiodic time function&nbsp; $x(t)$&nbsp; and the corresponding Fourier spectrum&nbsp; $X(f)$,&nbsp; a discrete-time and discrete-frequency description suitable for computer processing is presented.
  
  
 
===Time discretization &ndash; periodization in the frequency domain===
 
===Time discretization &ndash; periodization in the frequency domain===
  
The following graphs uniformly show the time domain on the left and the frequency domain on the right. Without restriction of generality,&nbsp; $x(t)$&nbsp; and&nbsp; $X(f)$&nbsp; are real and Gaussian, respectively.
+
The following graphs uniformly show the time domain on the left and the frequency domain on the right.&nbsp; Without restriction of generality,&nbsp; $x(t)$&nbsp; and&nbsp; $X(f)$&nbsp; are real and Gaussian,&nbsp; respectively.
  
 
[[File:P_ID1132__Sig_T_5_1_S2_neu.png|center|frame|Discretization in the time domain – periodization in the frequency domain]]
 
[[File:P_ID1132__Sig_T_5_1_S2_neu.png|center|frame|Discretization in the time domain – periodization in the frequency domain]]
  
One can describe the sampling of the time signal&nbsp; $x(t)$&nbsp; by multiplication with a Dirac pulse&nbsp; $p_{\delta}(t)$.&nbsp; This results in the time signal sampled at distance&nbsp; $T_{\rm A}$&nbsp;  
+
One can describe the sampling of the time signal&nbsp; $x(t)$&nbsp; by multiplication with a Dirac delta pulse&nbsp; $p_{\delta}(t)$.&nbsp; This results in the time signal sampled at distance&nbsp; $T_{\rm A}$:&nbsp;  
 
   
 
   
 
:$${\rm A}\{x(t)\} =  \sum_{\nu = - \infty }^{+\infty} T_{\rm A} \cdot x(\nu \cdot T_{\rm A})\cdot
 
:$${\rm A}\{x(t)\} =  \sum_{\nu = - \infty }^{+\infty} T_{\rm A} \cdot x(\nu \cdot T_{\rm A})\cdot
Line 70: Line 74:
 
  )\hspace{0.05cm}.$$
 
  )\hspace{0.05cm}.$$
  
We now transform this sampled signal&nbsp; $\text{A}\{ x(t)\}$&nbsp; into the frequency domain. The multiplication of the Dirac pulse&nbsp; $p_{\delta}(t)$&nbsp; with&nbsp; $x(t)$&nbsp; corresponds in the frequency domain to the convolution of&nbsp; $P_{\delta}(f)$&nbsp; with&nbsp; $X(f)$. The periodized spectrum&nbsp; $\text{P}\{ X(f)\}$ is obtained, where&nbsp; $f_{\rm P}$&nbsp; is the frequency period of the function&nbsp; $\text{P}\{ X(f)\}$:&nbsp;  
+
We now transform this sampled signal&nbsp; $\text{A}\{ x(t)\}$&nbsp; into the frequency domain. The multiplication of the Dirac delta pulse&nbsp; $p_{\delta}(t)$&nbsp; with&nbsp; $x(t)$&nbsp; corresponds in the frequency domain to the convolution of&nbsp; $P_{\delta}(f)$&nbsp; with&nbsp; $X(f)$.&nbsp; The periodized spectrum&nbsp; $\text{P}\{ X(f)\}$ is obtained,&nbsp; where&nbsp; $f_{\rm P}$&nbsp; is the frequency period of the function&nbsp; $\text{P}\{ X(f)\}$:&nbsp;  
 
   
 
   
 
:$${\rm A}\{x(t)\} \hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{X(f)\} =  \sum_{\mu = - \infty }^{+\infty}
 
:$${\rm A}\{x(t)\} \hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{X(f)\} =  \sum_{\mu = - \infty }^{+\infty}
Line 77: Line 81:
  
 
*We call the sampled signal&nbsp; $\text{A}\{ x(t)\}$.
 
*We call the sampled signal&nbsp; $\text{A}\{ x(t)\}$.
*The&nbsp; '''frequency period'''&nbsp; is denoted by&nbsp; $f_{\rm P}$ = $1/T_{\rm A}$.&nbsp;
 
  
 +
*The&nbsp; &raquo;'''frequency period'''&laquo;&nbsp; is denoted by&nbsp; $f_{\rm P}$ = $1/T_{\rm A}$.&nbsp;
  
The graph above shows the functional relationship described here. It should be noted:
+
 
*The frequency period&nbsp; $f_{\rm P}$&nbsp; was deliberately chosen small here so that the overlap of the spectra to be summed can be clearly seen.
+
The graph above shows the functional relationship described here.&nbsp; It should be noted:
*In practice, due to the sampling theorem,&nbsp; $f_{\rm P}$&nbsp; should be at least twice as large as the largest frequency contained in the signal&nbsp; $x(t)$.&nbsp;  
+
#The frequency period&nbsp; $f_{\rm P}$&nbsp; was deliberately chosen small here so that the overlap of the spectra to be summed can be clearly seen.
*If this is not fulfilled,&nbsp; '''aliasing'''&nbsp; must be expected.
+
#In practice,&nbsp; due to the sampling theorem,&nbsp; $f_{\rm P}$&nbsp; should be at least twice as large as the largest frequency contained in the signal&nbsp; $x(t)$.&nbsp;  
 +
#If this is not fulfilled,&nbsp; &raquo;'''aliasing'''&laquo;&nbsp; must be expected.
  
  
Line 89: Line 94:
 
===Frequency discretization &ndash; periodization in the time domain===
 
===Frequency discretization &ndash; periodization in the time domain===
  
The discretization of&nbsp; $X(f)$&nbsp; can also be described by a multiplication with a Dirac pulse. The result is the spectrum sampled at distance&nbsp; $f_{\rm A}$:&nbsp;  
+
The discretization of&nbsp; $X(f)$&nbsp; can also be described by a multiplication with a Dirac delta pulse. The result is the spectrum sampled at distance&nbsp; $f_{\rm A}$:&nbsp;  
 
   
 
   
 
:$${\rm A}\{X(f)\} =  X(f) \cdot  \sum_{\mu = - \infty }^{+\infty}
 
:$${\rm A}\{X(f)\} =  X(f) \cdot  \sum_{\mu = - \infty }^{+\infty}
Line 95: Line 100:
 
  f_{\rm A} \cdot X(\mu \cdot f_{\rm A } ) \cdot\delta (f- \mu \cdot f_{\rm A } )\hspace{0.05cm}.$$
 
  f_{\rm A} \cdot X(\mu \cdot f_{\rm A } ) \cdot\delta (f- \mu \cdot f_{\rm A } )\hspace{0.05cm}.$$
  
Transforming the frequency Dirac pulse used here $($with pulse weights&nbsp; $f_{\rm A})$&nbsp; into the time domain, we obtain with&nbsp; $T_{\rm P} = 1/f_{\rm A}$:
+
*Transforming the frequency Dirac delta pulse used here&nbsp; $($with pulse weights&nbsp; $f_{\rm A})$&nbsp; into the time domain,&nbsp; we obtain with&nbsp; $T_{\rm P} = 1/f_{\rm A}$:
 
   
 
   
 
:$$\sum_{\mu = - \infty }^{+\infty}
 
:$$\sum_{\mu = - \infty }^{+\infty}
Line 102: Line 107:
 
   \delta (t- \nu \cdot T_{\rm P } ) \hspace{0.05cm}.$$
 
   \delta (t- \nu \cdot T_{\rm P } ) \hspace{0.05cm}.$$
  
The multiplication with&nbsp; $X(f)$&nbsp; corresponds in the time domain to the convolution with&nbsp; $x(t)$. The signal&nbsp; $\text{P}\{ x(t)\}$ periodized at distance&nbsp; $T_{\rm P}$&nbsp; is obtained:
+
*The multiplication with&nbsp; $X(f)$&nbsp; corresponds in the time domain to the convolution with&nbsp; $x(t)$. The signal&nbsp; $\text{P}\{ x(t)\}$ periodized at distance&nbsp; $T_{\rm P}$&nbsp; is obtained:
 
   
 
   
 
:$${\rm A}\{X(f)\} \hspace{0.2cm}\bullet\!\!-\!\!\!-\!\!\!-\!\!\circ\, \hspace{0.2cm}
 
:$${\rm A}\{X(f)\} \hspace{0.2cm}\bullet\!\!-\!\!\!-\!\!\!-\!\!\circ\, \hspace{0.2cm}
Line 109: Line 114:
 
   x (t- \nu \cdot T_{\rm P } ) \hspace{0.05cm}.$$
 
   x (t- \nu \cdot T_{\rm P } ) \hspace{0.05cm}.$$
  
 +
 +
{{GraueBox|TEXT=
 
[[File:P_ID1134__Sig_T_5_1_S3_neu.png|right|frame|Discretization in the frequency domain – periodization in the time domain]]
 
[[File:P_ID1134__Sig_T_5_1_S3_neu.png|right|frame|Discretization in the frequency domain – periodization in the time domain]]
{{GraueBox|TEXT=
 
 
$\text{Example 1:}$&nbsp;
 
$\text{Example 1:}$&nbsp;
This relationship is illustrated in the graphic:
+
This relationship is illustrated in the graph:
*Due to the coarse frequency rastering, this example results in a relatively small value for the time period&nbsp; $T_{\rm P}$.&nbsp;
+
 
 +
 
  
 +
#Due to the coarse frequency rastering,&nbsp; this example results in a relatively small value for the time period&nbsp; $T_{\rm P}$.&nbsp;<br><br>
 +
#Therefore,&nbsp; the&nbsp; $($blue$)$&nbsp; periodized time signal&nbsp; $\text{P}\{ x(t)\}$&nbsp; differs significantly from&nbsp; $x(t)$ due to overlaps.}}
  
*Therefore, the (blue) periodized time signal&nbsp; $\text{P}\{ x(t)\}$&nbsp; differs significantly from&nbsp; $x(t)$ due to overlaps.}}
 
  
  
 
===Finite signal representation===
 
===Finite signal representation===
 +
 +
One arrives at the so-called&nbsp; &raquo;'''finite signal representation'''&laquo;&nbsp; 
 +
*when both the time function&nbsp; $x(t)$&nbsp; and
 +
 +
*the spectral function&nbsp; $X(f)$
  
 
[[File:P_ID1135__Sig_T_5_1_S4_neu.png|right|frame|Finite signals of the Discrete Fourier Transform]]
 
[[File:P_ID1135__Sig_T_5_1_S4_neu.png|right|frame|Finite signals of the Discrete Fourier Transform]]
One arrives at the so-called&nbsp; ''finite signal representation''&nbsp; 
 
*when both the time function&nbsp; $x(t)$ and
 
*the spectral function&nbsp; $X(f)$
 
  
 +
are specified exclusively by their sample values:
  
are specified exclusively by their sample values.
 
<br clear=all>
 
 
The graph is to be interpreted as follows:
 
The graph is to be interpreted as follows:
*In the left picture the function&nbsp; $\text{A}\{ \text{P}\{ x(t)\}\}$ is drawn in blue. It is obtained by sampling the periodized time function&nbsp; $\text{P}\{ x(t)\}$&nbsp; with equidistant Dirac pulses in the distance&nbsp; $T_{\rm A} = 1/f_{\rm P}$.
+
*In the left graph the function&nbsp; $\text{A}\{ \text{P}\{ x(t)\}\}$&nbsp; is drawn in blue.&nbsp; It is obtained by sampling the periodized time function&nbsp; $\text{P}\{ x(t)\}$&nbsp; with equidistant Dirac delta pulses in the distance&nbsp; $T_{\rm A} = 1/f_{\rm P}$.
*In the right picture the function&nbsp; $\text{P}\{ \text{A}\{ X(f)\}\}$ is drawn in green. This results from periodization $($with&nbsp; $f_{\rm P})$&nbsp; of the sampled spectral function&nbsp; $\{ \text{A}\{ X(f)\}\}$.  
+
 
*There is also a Fourier correspondence between the blue finite signal and the green finite signal, as follows:
+
*In the right graph the function&nbsp; $\text{P}\{ \text{A}\{ X(f)\}\}$&nbsp; is drawn in green.&nbsp; This results from periodization&nbsp; $($with&nbsp; $f_{\rm P})$&nbsp; of the sampled spectral function&nbsp; $\{ \text{A}\{ X(f)\}\}$.
 +
 +
*There is also a Fourier correspondence between the blue finite signal and the green finite signal,&nbsp; as follows:
 
   
 
   
 
:$${\rm A}\{{\rm P}\{x(t)\}\} \hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{{\rm A}\{X(f)\}\} \hspace{0.05cm}.$$
 
:$${\rm A}\{{\rm P}\{x(t)\}\} \hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{{\rm A}\{X(f)\}\} \hspace{0.05cm}.$$
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
However, the Diraclines of the periodic continuation&nbsp; $\text{P}\{ \text{A}\{ X(f)\}\}$&nbsp; of the sampled spectral function fall into the same frequency grid as those of&nbsp; $\text{A}\{ X(f)\}$ only if the frequency period&nbsp; $f_{\rm P}$&nbsp; is an integer multiple&nbsp; $(N)$&nbsp; of the frequency sampling interval&nbsp; $f_{\rm A}$.&nbsp;  
+
However,&nbsp; the Dirac delta lines of the periodic continuation&nbsp; $\text{P}\{ \text{A}\{ X(f)\}\}$&nbsp; of the sampled spectral function fall into the same frequency grid as those of&nbsp; $\text{A}\{ X(f)\}$&nbsp; only if the frequency period&nbsp; $f_{\rm P}$&nbsp; is an integer multiple&nbsp; $(N)$&nbsp; of the frequency sampling interval&nbsp; $f_{\rm A}$.&nbsp;  
  
*When using the finite signal representation, the following condition must always be fulfilled, where in practice a power of two is usually used for the natural number&nbsp; $N$&nbsp; (the graph above is based on the value&nbsp; $N = 8$&nbsp;):
+
When using the finite signal representation,&nbsp; the following condition must always be fulfilled,&nbsp; where in practice a power of two is usually used for the natural number&nbsp; $N$&nbsp; $($the graph above is based on the value&nbsp; $N = 8)$:
 
   
 
   
 
:$$f_{\rm P} = N \cdot f_{\rm A} \hspace{0.5cm} \Rightarrow\hspace{0.5cm} {1}/{T_{\rm A} }= N \cdot f_{\rm A} \hspace{0.5cm} \Rightarrow\hspace{0.5cm}
 
:$$f_{\rm P} = N \cdot f_{\rm A} \hspace{0.5cm} \Rightarrow\hspace{0.5cm} {1}/{T_{\rm A} }= N \cdot f_{\rm A} \hspace{0.5cm} \Rightarrow\hspace{0.5cm}
Line 151: Line 162:
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
$\text{Conclusion:}$&nbsp;
+
$\text{Conclusions:}$&nbsp;
*The time function&nbsp; $\text{P}\{ \text{A}\{ x(t)\}\}$&nbsp; has the period&nbsp; $T_{\rm P} = N \cdot T_{\rm A}$.  
+
#The time function&nbsp; $\text{P}\{ \text{A}\{ x(t)\}\}$&nbsp; has the period&nbsp; $T_{\rm P} = N \cdot T_{\rm A}$.  
*The period in the frequency domain is&nbsp; $f_{\rm P} = N \cdot f_{\rm A}$.  
+
#The period in the frequency domain is&nbsp; $f_{\rm P} = N \cdot f_{\rm A}$.  
*For the description of the discretized time and frequency course&nbsp; $N$&nbsp; '''complex numerical values''' in the form of pulse weights are sufficient in each case.}}
+
#For the description of the discretized time and frequency course&nbsp; $N$&nbsp; '''&raquo;complex numerical values&laquo;''' in the form of pulse weights are sufficient in each case.}}
  
  
 
{{GraueBox|TEXT=
 
{{GraueBox|TEXT=
 
$\text{Example 2:}$&nbsp;
 
$\text{Example 2:}$&nbsp;
A time-limited (pulse-like) signal&nbsp; $x(t)$&nbsp; is present in sampled form, where the distance between two samples is&nbsp; $T_{\rm A} = 1\, {\rm &micro; s}$:&nbsp;  
+
A time-limited&nbsp; $($pulse-like$)$&nbsp; signal&nbsp; $x(t)$&nbsp; is present in sampled form,&nbsp; where the distance between two samples is&nbsp; $T_{\rm A} = 1\, {\rm &micro; s}$:&nbsp;  
*After a discrete Fourier transformation with&nbsp; $N = 512$&nbsp; the spectrum&nbsp; $X(f)$&nbsp; is available as samples with the distance&nbsp; $f_{\rm A} = (N \cdot T_{\rm A})^{–1} \approx 1.953\,\text{kHz} $.&nbsp;  
+
 
*Increasing the DFT parameter to&nbsp;  $N= 2048$ results in a finer frequency grid with&nbsp; $f_{\rm A} \approx 488\,\text{Hz}$.}}
+
*After a discrete Fourier transform with&nbsp; $N = 512$&nbsp; the spectrum&nbsp; $X(f)$&nbsp; is available as samples with the distance&nbsp; $f_{\rm A} = (N \cdot T_{\rm A})^{–1} \approx 1.953\,\text{kHz} $.&nbsp;
 +
 +
*Increasing the DFT parameter to&nbsp;  $N= 2048$ results&nbsp; in a finer frequency grid with&nbsp; $f_{\rm A} \approx 488\,\text{Hz}$.}}
  
  
Line 167: Line 180:
 
===Discrete Fourier Transform===
 
===Discrete Fourier Transform===
  
From the conventional&nbsp; "first Fourier integral"
+
From the conventional&nbsp; &raquo;first Fourier integral&laquo;
 
   
 
   
 
:$$X(f) =\int_{-\infty
 
:$$X(f) =\int_{-\infty
 
  }^{+\infty}x(t) \cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi \hspace{0.05cm}\cdot \hspace{0.05cm} f  \hspace{0.05cm}\cdot \hspace{0.05cm}t}\hspace{0.1cm} {\rm d}t$$
 
  }^{+\infty}x(t) \cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi \hspace{0.05cm}\cdot \hspace{0.05cm} f  \hspace{0.05cm}\cdot \hspace{0.05cm}t}\hspace{0.1cm} {\rm d}t$$
  
discretization&nbsp; $(\text{d}t \to T_{\rm A}$,&nbsp;  $t \to \nu \cdot T_{\rm A}$,&nbsp;  $f \to \mu \cdot f_{\rm A}$,&nbsp;  $T_{\rm A} \cdot f_{\rm A} = 1/N)$&nbsp; yields the sampled and periodized spectral function
+
&raquo;discretization&laquo;&nbsp; $(\text{d}t \to T_{\rm A}$,&nbsp;  $t \to \nu \cdot T_{\rm A}$,&nbsp;  $f \to \mu \cdot f_{\rm A}$,&nbsp;  $T_{\rm A} \cdot f_{\rm A} = 1/N)$&nbsp; yields the sampled and periodized spectral function
 
   
 
   
 
:$${\rm P}\{X(\mu \cdot f_{\rm A})\} = T_{\rm A} \cdot \sum_{\nu = 0 }^{N-1}
 
:$${\rm P}\{X(\mu \cdot f_{\rm A})\} = T_{\rm A} \cdot \sum_{\nu = 0 }^{N-1}
Line 181: Line 194:
  
 
For reasons of a simplified notation we now make the following substitutions:
 
For reasons of a simplified notation we now make the following substitutions:
*Let the&nbsp; $N$&nbsp; '''time-domain coefficients'''&nbsp; be associated with the indexing variable&nbsp; $\nu = 0$, ... , $N - 1$:
+
*Let the&nbsp; $N$&nbsp; &raquo;'''time-domain coefficients'''&laquo;&nbsp; be associated with the indexing variable&nbsp; $\nu = 0$, ... , $N - 1$:
 
:$$d(\nu) =
 
:$$d(\nu) =
 
   {\rm P}\left\{x(t)\right\}{\big|}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm A}}\hspace{0.05cm}.$$
 
   {\rm P}\left\{x(t)\right\}{\big|}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm A}}\hspace{0.05cm}.$$
*Let the&nbsp; $N$&nbsp; '''frequency-domain coefficients'''&nbsp; be associated with the indexing variable&nbsp; $\mu = 0,$ ... , $N$ – 1:
+
*Let the&nbsp; $N$&nbsp; &raquo;'''frequency-domain coefficients'''&laquo;&nbsp; be associated with the indexing variable&nbsp; $\mu = 0,$ ... , $N$ – 1:
 
:$$D(\mu) = f_{\rm A} \cdot
 
:$$D(\mu) = f_{\rm A} \cdot
 
   {\rm P}\left\{X(f)\right\}{\big|}_{f \hspace{0.05cm}= \hspace{0.05cm}\mu \hspace{0.05cm}\cdot \hspace{0.05cm}f_{\rm A}}\hspace{0.05cm}.$$
 
   {\rm P}\left\{X(f)\right\}{\big|}_{f \hspace{0.05cm}= \hspace{0.05cm}\mu \hspace{0.05cm}\cdot \hspace{0.05cm}f_{\rm A}}\hspace{0.05cm}.$$
*Abbreviation for the&nbsp;  '''complex rotation factor'''&nbsp; depending on&nbsp; $N$&nbsp; is written:
+
*Abbreviation for the&nbsp;  &raquo;'''complex rotation factor'''&laquo;&nbsp; depending on&nbsp; $N$&nbsp; is written:
 
:$$w  = {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi /N}
 
:$$w  = {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi /N}
 
  = \cos \left(  {2 \pi}/{N}\right)-{\rm j} \cdot \sin \left(  {2 \pi}/{N}\right)
 
  = \cos \left(  {2 \pi}/{N}\right)-{\rm j} \cdot \sin \left(  {2 \pi}/{N}\right)
 
  \hspace{0.05cm}.$$  
 
  \hspace{0.05cm}.$$  
  
[[File:P_ID2730__Sig_T_5_1_S5_neu.png|right|frame|On the definition of the Discrete Fourier Transform (DFT) with&nbsp; $N=8$]]
 
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
$\text{Definition:}$&nbsp;
+
$\text{Definition:}$&nbsp; The term&nbsp;  &raquo;'''Discrete Fourier Transform'''&laquo;&nbsp; $\rm (DFT)$&nbsp; means the calculation of the&nbsp; $N$&nbsp; spectral coefficients&nbsp; $D(\mu)$&nbsp; from the&nbsp; $N$&nbsp; signal coefficients&nbsp; $d(\nu)$:
 
+
[[File:P_ID2730__Sig_T_5_1_S5_neu.png|right|frame|On the definition of the Discrete Fourier Transform&nbsp; $\rm (DFT)$&nbsp; with&nbsp; $N=8$]]
The term&nbsp;  '''Discrete Fourier Transform'''&nbsp; ('''DFT''' for short)&nbsp; means the calculation of the&nbsp; $N$&nbsp; spectral coefficients&nbsp; $D(\mu)$&nbsp; from the&nbsp; $N$&nbsp; signal coefficients&nbsp; $d(\nu)$:
 
 
   
 
   
 
:$$D(\mu) = \frac{1}{N} \cdot \sum_{\nu = 0 }^{N-1}
 
:$$D(\mu) = \frac{1}{N} \cdot \sum_{\nu = 0 }^{N-1}
 
   d(\nu)\cdot  {w}^{\hspace{0.05cm}\nu \hspace{0.03cm} \cdot \hspace{0.05cm}\mu} \hspace{0.05cm}. $$
 
   d(\nu)\cdot  {w}^{\hspace{0.05cm}\nu \hspace{0.03cm} \cdot \hspace{0.05cm}\mu} \hspace{0.05cm}. $$
 +
 +
 +
  
 
In the graph you can see in an example  
 
In the graph you can see in an example  
*the&nbsp; $N = 8$&nbsp; signal coefficients&nbsp; $d(\nu)$&nbsp; at the blue filling,
+
#the&nbsp; $N = 8$&nbsp; signal coefficients&nbsp; $d(\nu)$&nbsp; at the blue filling,
*the&nbsp; $N = 8$&nbsp; spectral coefficients&nbsp; $D(\mu)$&nbsp; at the green filling.}}
+
#the&nbsp; $N = 8$&nbsp; spectral coefficients&nbsp; $D(\mu)$&nbsp; at the green filling.}}
  
  
 
===Inverse Discrete Fourier Transform===
 
===Inverse Discrete Fourier Transform===
  
The Inverse Discrete Fourier Transform (IDFT) describes the&nbsp; "second Fourier integral"
+
The&nbsp; &raquo;Inverse Discrete Fourier Transform&laquo;&nbsp; describes the&nbsp; &raquo;second Fourier integral&laquo;:
 
   
 
   
 
:$$\begin{align*}x(t) & =  \int_{-\infty
 
:$$\begin{align*}x(t) & =  \int_{-\infty
Line 214: Line 228:
 
  t}\hspace{0.1cm} {\rm d}f\end{align*}$$
 
  t}\hspace{0.1cm} {\rm d}f\end{align*}$$
  
in discretized form: &nbsp; $d(\nu) =
+
in discretized form: &nbsp;  
 +
:$$d(\nu) =
 
   {\rm P}\left\{x(t)\right\}{\big|}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm
 
   {\rm P}\left\{x(t)\right\}{\big|}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm
   A}}\hspace{0.01cm}.$
+
   A}}\hspace{0.01cm}.$$
  
[[File:P_ID2731__Sig_T_5_1_S6_neu.png|right|frame|For the definition of the IDFT with&nbsp; $N=8$]]
 
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
$\text{Definition:}$&nbsp;
+
$\text{Definition:}$&nbsp; The term&nbsp;  &raquo;'''Inverse Discrete Fourier Transform&laquo;'''&nbsp; $\rm (IDFT)$&nbsp; refers to the calculation of the signal coefficients&nbsp; $d(\nu)$&nbsp; from the spectral coefficients&nbsp; $D(\mu)$:
 
+
[[File:P_ID2731__Sig_T_5_1_S6_neu.png|right|frame|For the definition of the IDFT with&nbsp; $N=8$]]
The term&nbsp;  '''Inverse Discrete Fourier Transform'''&nbsp; ('''IDFT''' for short)&nbsp; refers to the calculation of the signal coefficients&nbsp; $d(\nu)$&nbsp; from the spectral coefficients&nbsp; $D(\mu)$:
 
 
 
:$$d(\nu) =  \sum_{\mu = 0 }^{N-1}
 
:$$d(\nu) =  \sum_{\mu = 0 }^{N-1}
 
  D(\mu) \cdot  {w}^{-\nu \hspace{0.03cm} \cdot \hspace{0.05cm}\mu} \hspace{0.05cm}.$$
 
  D(\mu) \cdot  {w}^{-\nu \hspace{0.03cm} \cdot \hspace{0.05cm}\mu} \hspace{0.05cm}.$$
  
With the indexing variables&nbsp; $\nu = 0,  \hspace{0.05cm}\text{...} \hspace{0.05cm}, N-1$&nbsp; und&nbsp; $\mu = 0,  \hspace{0.05cm}\text{...} \hspace{0.05cm}, N-1$&nbsp; also holds here:
+
With the indexing variables&nbsp;  
:$$d(\nu) =
+
*$\nu = 0,  \hspace{0.05cm}\text{...} \hspace{0.05cm}, N-1$,
 +
*$\mu = 0,  \hspace{0.05cm}\text{...} \hspace{0.05cm}, N-1$,:
 +
 
 +
 
 +
then holds:  
 +
#$d(\nu) =
 
   {\rm P}\left\{x(t)\right\}{\big \vert}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm
 
   {\rm P}\left\{x(t)\right\}{\big \vert}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm
   A} }\hspace{0.01cm},$$
+
   A} }\hspace{0.01cm},$
+
#$D(\mu) = f_{\rm A} \cdot
:$$D(\mu) = f_{\rm A} \cdot
 
 
   {\rm P}\left\{X(f)\right\}{\big \vert}_{f \hspace{0.05cm}= \hspace{0.05cm}\mu \hspace{0.05cm}\cdot \hspace{0.05cm}f_{\rm A} }
 
   {\rm P}\left\{X(f)\right\}{\big \vert}_{f \hspace{0.05cm}= \hspace{0.05cm}\mu \hspace{0.05cm}\cdot \hspace{0.05cm}f_{\rm A} }
   \hspace{0.01cm},$$
+
   \hspace{0.01cm},$
 
+
#$w  = {\rm e}^{- {\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi /N}
:$$w  = {\rm e}^{- {\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi /N}
+
  \hspace{0.01cm}.$}}
  \hspace{0.01cm}.$$}}
 
  
 
   
 
   
 
A comparison between DFT and IDFT shows that exactly the same algorithm can be used. The only differences of the IDFT compared to the DFT are:
 
A comparison between DFT and IDFT shows that exactly the same algorithm can be used. The only differences of the IDFT compared to the DFT are:
*The exponent of the rotation factor must be applied with a different sign.
+
*The exponent of the rotation factor must be applied with different sign.
*With the IDFT the division by&nbsp; $N$ is omitted.
+
 
 +
*With the IDFT the division by&nbsp; $N$&nbsp; is omitted.
  
  
 
===Interpretation of DFT and IDFT===
 
===Interpretation of DFT and IDFT===
<br>
+
 
 
The graph shows the discrete coefficients in the time and frequency domain together with the periodized continuous-time functions.
 
The graph shows the discrete coefficients in the time and frequency domain together with the periodized continuous-time functions.
  
[[File:P_ID1136__Sig_T_5_1_S7_neu.png|center|frame|Time and frequency domain coefficients of the DFT]]
+
[[File:P_ID1136__Sig_T_5_1_S7_neu.png|right|frame|Time and frequency domain coefficients of the DFT]]
 +
 
 +
When using DFT or IDFT,&nbsp; it should be noted:
 +
*According to the above definitions,&nbsp; the DFT coefficients&nbsp; $d(ν)$&nbsp; and&nbsp; $D(\mu)$&nbsp; always have the unit of the time function.
 +
 
 +
*Dividing&nbsp; $D(\mu)$&nbsp; by&nbsp; $f_{\rm A}$&nbsp; gives the spectral value&nbsp; $X(\mu \cdot f_{\rm A})$.
  
When using DFT or IDFT, it should be noted:
 
*According to the above definitions, the DFT coefficients&nbsp; $d(ν)$&nbsp; and&nbsp; $D(\mu)$&nbsp; always have the unit of the time function.
 
*Dividing&nbsp; $D(\mu)$&nbsp; by&nbsp; $f_{\rm A}$ gives the spectral value&nbsp; $X(\mu \cdot f_{\rm A})$.
 
 
*The spectral coefficients&nbsp; $D(\mu)$&nbsp; must always be set complex to be able to consider also odd time functions.
 
*The spectral coefficients&nbsp; $D(\mu)$&nbsp; must always be set complex to be able to consider also odd time functions.
*In order to be able to transform band&ndash;pass signals in the equivalent lowndash;pass range, complex time coefficients&nbsp; $d(\nu)$ are usually used.
+
 
*The basic interval for&nbsp; $\nu$&nbsp; and&nbsp;  $\mu$&nbsp; is usually defined as the range from&nbsp; $0$&nbsp; to&nbsp; $N - 1$, as in the above diagram.
+
*In order to be able to transform band&ndash;pass signals in the equivalent low&ndash;pass range,&nbsp; complex time coefficients&nbsp; $d(\nu)$ are usually used.
*With the complex-valued number sequences&nbsp; $\langle \hspace{0.1cm}d(\nu)\hspace{0.1cm}\rangle  = \langle \hspace{0.1cm}d(0), \hspace{0.05cm}\text{...} \hspace{0.05cm} , d(N-1) \hspace{0.1cm}\rangle$ &nbsp; as well as &nbsp; $\langle \hspace{0.1cm}D(\mu)\hspace{0.1cm}\rangle  =  \langle \hspace{0.1cm}D(0), \hspace{0.05cm}\text{...} \hspace{0.05cm} , D(N-1) \hspace{0.1cm}\rangle$&nbsp; DFT and IDFT are symbolized similar to the conventional Fourier transform:
+
 
:$$\langle \hspace{0.1cm} D(\mu)\hspace{0.1cm}\rangle \hspace{0.2cm}\bullet\!\!-\!\!\!-(N)\!-\!\!\!-\!\!\hspace{0.05cm}\circ\, \hspace{0.2cm} \langle \hspace{0.1cm} d(\nu) \hspace{0.1cm}\rangle  \hspace{0.05cm}.$$  
+
*The basic interval for&nbsp; $\nu$&nbsp; and&nbsp;  $\mu$&nbsp; is usually defined as the range from&nbsp; $0$&nbsp; to&nbsp; $N - 1$,&nbsp; as in the above diagram.
*If the time function&nbsp; $x(t)$&nbsp; is already limited to the range&nbsp; $0 \le t \lt N \cdot T_{\rm A}$,&nbsp; then the time coefficients output by the IDFT directly indicate the samples of the time function:  &nbsp; $d(\nu) = x(\nu \cdot T_{\rm A}).$
+
 
*If&nbsp; $x(t)$&nbsp; is shifted with respect to the basic interval, one has to choose the assignment between&nbsp; $x(t)$&nbsp; and the coefficients&nbsp; $d(\nu)$&nbsp; shown in&nbsp; $\text{Example 3}$.&nbsp;  
+
*With the complex-valued number sequences&nbsp;  
 +
**$\langle \hspace{0.03cm}d(\nu)\hspace{0.03cm}\rangle  = \langle \hspace{0.03cm}d(0), \hspace{0.05cm}\text{...} \hspace{0.05cm} , d(N-1) \hspace{0.03cm}\rangle$,
 +
**$\langle \hspace{0.03cm}D(\mu)\hspace{0.03cm}\rangle  =  \langle \hspace{0.03cm}D(0), \hspace{0.05cm}\text{...} \hspace{0.05cm} , D(N-1) \hspace{0.03cm}\rangle$:&nbsp;
 +
 
 +
 
 +
:&rArr; &nbsp; DFT and IDFT are symbolized similar to the conventional Fourier transform:
 +
::$$\langle \hspace{0.03cm} D(\mu)\hspace{0.03cm}\rangle \hspace{0.2cm}\bullet\!\!-\!\!\!-(N)\!-\!\!\!-\!\!\hspace{0.05cm}\circ\, \hspace{0.2cm} \langle \hspace{0.03cm} d(\nu) \hspace{0.03cm}\rangle  \hspace{0.05cm}.$$  
 +
*If the function&nbsp; $x(t)$&nbsp; is already limited to the range&nbsp; $0 \le t \lt N \cdot T_{\rm A}$,&nbsp; then the time coefficients output by the IDFT directly indicate the samples of the time function:  &nbsp;  
 +
:$$d(\nu) = x(\nu \cdot T_{\rm A}).$$
 +
*If&nbsp; $x(t)$&nbsp; is shifted with respect to the basic interval,&nbsp; one has to choose the assignment between&nbsp; $x(t)$&nbsp; and the coefficients&nbsp; $d(\nu)$&nbsp; as shown in&nbsp; $\text{Example 3}$.&nbsp;  
  
  
 
{{GraueBox|TEXT=
 
{{GraueBox|TEXT=
 
$\text{Example 3:}$&nbsp;
 
$\text{Example 3:}$&nbsp;
The upper graph shows the asymmetric triangular pulse&nbsp; $x(t)$ whose absolute width is smaller than&nbsp; $T_{\rm P} = N \cdot T_{\rm A}$.  
+
The upper graph shows the asymmetric triangular pulse&nbsp; $x(t)$&nbsp; whose absolute width is smaller than&nbsp; $T_{\rm P} = N \cdot T_{\rm A}$.  
  
[[File:P_ID1139__Sig_T_5_1_S7b_neu.png|right|frame|For the assignment of the DFT coefficients with&nbsp; $N=8$]]
+
[[File:EN_Sig_T_5_1_S7b_neu.png|right|frame|On assigning of the DFT coefficients with&nbsp; $N=8$]]
  
The sketch below shows the assigned DFT coefficients valid for&nbsp;  $N = 8$
+
The sketch below shows the assigned DFT coefficients valid for&nbsp;  $N = 8$:
  
*For&nbsp;  $\nu = 0,\hspace{0.05cm}\text{...} \hspace{0.05cm} , N/2 = 4$,&nbsp; &nbsp; $d(\nu) = x(\nu \cdot T_{\rm A})$ is valid:
+
*For&nbsp;  $\nu = 0,\hspace{0.05cm}\text{...} \hspace{0.05cm} , N/2 = 4$,&nbsp; &nbsp; $d(\nu) = x(\nu \cdot T_{\rm A})$ &nbsp; is valid:
  
 
:$$d(0) = x (0)\hspace{0.05cm}, \hspace{0.15cm}
 
:$$d(0) = x (0)\hspace{0.05cm}, \hspace{0.15cm}
Line 278: Line 305:
 
:$$d(3) = x (3T_{\rm A})\hspace{0.05cm}, \hspace{0.15cm}
 
:$$d(3) = x (3T_{\rm A})\hspace{0.05cm}, \hspace{0.15cm}
 
d(4) = x (4T_{\rm A})\hspace{0.05cm}.$$  
 
d(4) = x (4T_{\rm A})\hspace{0.05cm}.$$  
*On the other hand, the coefficients&nbsp; $d(5)$,&nbsp; $d(6)$&nbsp; and&nbsp; d$(7)$&nbsp; are to be set as follows:
+
*The coefficients&nbsp; $d(5)$,&nbsp; $d(6)$&nbsp; and&nbsp; d$(7)$&nbsp; are to be set as follows:
  
 
:$$d(\nu) = x \big ((\nu\hspace{-0.05cm} - \hspace{-0.05cm} N ) \cdot T_{\rm  A}\big )  $$
 
:$$d(\nu) = x \big ((\nu\hspace{-0.05cm} - \hspace{-0.05cm} N ) \cdot T_{\rm  A}\big )  $$
Line 293: Line 320:
 
<br>
 
<br>
 
[[File:Aufgaben_2D-Gauss.png|right]]
 
[[File:Aufgaben_2D-Gauss.png|right]]
* First select the number (1,...) of the exercise. <br>
+
* First select the number&nbsp; $($1,&nbsp;...$)$&nbsp; of the exercise. <br>
 
* A description of the exercise will be displayed.
 
* A description of the exercise will be displayed.
 
*The parameter values are adjusted. <br>
 
*The parameter values are adjusted. <br>
*Solution after pressing "Show solution". <br>
+
*Solution after pressing&nbsp; &raquo;Show solution&laquo;. <br>
*The number 0 corresponds to a "Reset":
+
*The number&nbsp; "$0$"&nbsp; corresponds to a&nbsp; &raquo;Reset&laquo;:
:Same setting as at program start.
+
#Same setting as at program start.
:Output of a "reset text" with further explanations about the applet.
+
#Output of a&nbsp; &raquo;reset text&laquo;&nbsp; with further explanations about the applet.
  
  
Line 306: Line 333:
  
 
:*&nbsp;All coefficients in the time domain are&nbsp; $d(\nu)=1$.&nbsp; Thus all&nbsp; $D(\mu)=0$&nbsp; with the exception of&nbsp; $\textrm{Re}[D(0)]=1$.  <br>
 
:*&nbsp;All coefficients in the time domain are&nbsp; $d(\nu)=1$.&nbsp; Thus all&nbsp; $D(\mu)=0$&nbsp; with the exception of&nbsp; $\textrm{Re}[D(0)]=1$.  <br>
:*&nbsp;This corresponds to the conventional (time-continuous) Fourier Transform:&nbsp; $x(t)=A\hspace{0.15cm} \circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm} X(f)=A\cdot \delta (f=0)$&nbsp; with&nbsp; $A=1$.
+
:*&nbsp;This corresponds to the conventional&nbsp; $($time-continuous$)$&nbsp; Fourier Transform:&nbsp; $x(t)=A\hspace{0.15cm} \circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm} X(f)=A\cdot \delta (f=0)$&nbsp; with&nbsp; $A=1$.
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
Line 313: Line 340:
  
 
:*&nbsp;Now all&nbsp; $D(\mu)=0$,&nbsp; except for&nbsp; $\textrm{Re}[D(1)]=1$.&nbsp; The result in the time domain is a complex exponential function.
 
:*&nbsp;Now all&nbsp; $D(\mu)=0$,&nbsp; except for&nbsp; $\textrm{Re}[D(1)]=1$.&nbsp; The result in the time domain is a complex exponential function.
:*&nbsp;The real part of  the&nbsp; $d(\nu)$-field '''KORREKTUR: &nbsp; $d(\nu)$ field''' shows a cosine and the imaginary part a sine function.&nbsp; For each function one can see one period respectively.
+
:*&nbsp;The real part of  the&nbsp; $d(\nu)$&nbsp; field shows a cosine and the imaginary part a sine function.&nbsp; For each function one can see one period respectively.
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
 
'''(3)'''&nbsp; Add the following coefficient to the current&nbsp; $D(\mu)$ field:&nbsp; $\textrm{Im}[D(1)]=1$.&nbsp; What are the differences compared to&nbsp; '''(2)'''&nbsp; in the time domain?
 
'''(3)'''&nbsp; Add the following coefficient to the current&nbsp; $D(\mu)$ field:&nbsp; $\textrm{Im}[D(1)]=1$.&nbsp; What are the differences compared to&nbsp; '''(2)'''&nbsp; in the time domain?
 
&nbsp;}}
 
&nbsp;}}
:*&nbsp;On the one hand, a phase shift of two support values can now be detected for the real and the imaginary parts.&nbsp; This corresponds to the phase&nbsp; $\varphi = 45^\circ$.
+
:*&nbsp;On the one hand,&nbsp; a phase shift of two support values can now be detected for the real and the imaginary parts.&nbsp; This corresponds to the phase&nbsp; $\varphi = 45^\circ$.
:*&nbsp;On the other hand, the amplitudes of the real and the imaginary part were each increased by the factor&nbsp; $\sqrt{2}$.
+
:*&nbsp;On the other hand,&nbsp; the amplitudes of the real and the imaginary part were each increased by the factor&nbsp; $\sqrt{2}$.
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
Line 325: Line 352:
 
}}
 
}}
  
:*&nbsp;By trial and error, one can see that&nbsp; $\textrm{Re}[D(15)]=1$&nbsp; must apply additionally.&nbsp; Then the&nbsp; $d(\nu)$&nbsp; field describes a cosine.
+
:*&nbsp;By trial and error,&nbsp; one can see that&nbsp; $\textrm{Re}[D(15)]=1$&nbsp; must apply additionally.&nbsp; Then the&nbsp; $d(\nu)$&nbsp; field describes a cosine.
:*&nbsp;The following applies to the conventional (time continuous) Fourier Transform:&nbsp; $x(t)=2\cdot \cos(2\pi \cdot f_0 \cdot t)\hspace{0.15cm}\circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm}
+
:*&nbsp;The following applies to the conventional&nbsp; $($time continuous$)$&nbsp; Fourier transform:&nbsp; $x(t)=2\cdot \cos(2\pi \cdot f_0 \cdot t)\hspace{0.15cm}\circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm}
 
X(f)=\delta (f-f_0)+\delta (f+f_0)$.
 
X(f)=\delta (f-f_0)+\delta (f+f_0)$.
 
:*&nbsp;The entry&nbsp; $D(1)$&nbsp; is representative of the frequency&nbsp; $f_0$&nbsp; and due to the periodicity with&nbsp; $N=16$&nbsp; the frequency&nbsp; $-f_0$&nbsp; is expressed by&nbsp; $D(15)=D(-1)$.  
 
:*&nbsp;The entry&nbsp; $D(1)$&nbsp; is representative of the frequency&nbsp; $f_0$&nbsp; and due to the periodicity with&nbsp; $N=16$&nbsp; the frequency&nbsp; $-f_0$&nbsp; is expressed by&nbsp; $D(15)=D(-1)$.  
Line 353: Line 380:
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
'''(8)'''&nbsp; New setting:&nbsp; DFT of signal&nbsp; $\rm (g)$:&nbsp; Cosine signal (two periods).&nbsp; Interpret the result in comparison to task '''KORREKTUR: exercise'''&nbsp; '''(5)'''.
+
'''(8)'''&nbsp; New setting:&nbsp; DFT of signal&nbsp; $\rm (g)$:&nbsp; Cosine signal (two periods).&nbsp; Interpret the result in comparison to exercise&nbsp; '''(5)'''.
 
}}
 
}}
  
Line 375: Line 402:
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
'''(11)'''&nbsp; What are the differences between the two settings DFT from signal&nbsp; $\rm (i)$:&nbsp; Dirac impulse &nbsp; and &nbsp;  IDFT from spectrum&nbsp; $\rm (I)$:&nbsp; Dirac spectrum?
+
'''(11)'''&nbsp; What are the differences between the two settings DFT from signal&nbsp; $\rm (i)$:&nbsp; Dirac delta impulse and &nbsp;  IDFT from spectrum&nbsp; $\rm (I)$:&nbsp; Dirac delta spectrum?
 
}}
 
}}
  
Line 389: Line 416:
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
'''(13)'''&nbsp; New setting: DFT of signal&nbsp; $\rm (k)$:&nbsp; Triangle impulse.&nbsp; Interpret the&nbsp; $d(\nu)$&nbsp; assignment under the assumption&nbsp; $T_\textrm{A} = 1$ ms.}}
+
'''(13)'''&nbsp; New setting: DFT of signal&nbsp; $\rm (k)$:&nbsp; Triangle pulse.&nbsp; Interpret the&nbsp; $d(\nu)$&nbsp; assignment under the assumption&nbsp; $T_\textrm{A} = 1$ ms.}}
  
 
:*&nbsp;Change the display to "absolute value".&nbsp; $x(t)$ is symmetrical around&nbsp; $t=0$&nbsp; and extends from&nbsp; $-8 \cdot T_\textrm{A} = -8$&nbsp; ms to&nbsp; $+8 \cdot T_\textrm{A}= +8$&nbsp; ms.  
 
:*&nbsp;Change the display to "absolute value".&nbsp; $x(t)$ is symmetrical around&nbsp; $t=0$&nbsp; and extends from&nbsp; $-8 \cdot T_\textrm{A} = -8$&nbsp; ms to&nbsp; $+8 \cdot T_\textrm{A}= +8$&nbsp; ms.  
Line 402: Line 429:
  
 
{{BlaueBox|TEXT=
 
{{BlaueBox|TEXT=
'''(15)'''&nbsp; New setting: DFT of signal&nbsp; $\rm (i)$:&nbsp; Rectangular impulse.&nbsp; Interpret the displayed results.}}
+
'''(15)'''&nbsp; New setting: DFT of signal&nbsp; $\rm (i)$:&nbsp; Rectangular pulse.&nbsp; Interpret the displayed results.}}
 
:*&nbsp;The set (symmetrical) rectangle extends over&nbsp; $\pm 4 \cdot T_\textrm{A}$.&nbsp; At the edges, the time coefficients are only half as large:&nbsp; $d(4)=d(12)=0.5$.
 
:*&nbsp;The set (symmetrical) rectangle extends over&nbsp; $\pm 4 \cdot T_\textrm{A}$.&nbsp; At the edges, the time coefficients are only half as large:&nbsp; $d(4)=d(12)=0.5$.
 
:* The further statements of&nbsp; '''(14)'''&nbsp; also apply to this&nbsp; $\textrm{si}$&ndash;shaped spectrum&nbsp; $X(f)$.
 
:* The further statements of&nbsp; '''(14)'''&nbsp; also apply to this&nbsp; $\textrm{si}$&ndash;shaped spectrum&nbsp; $X(f)$.
Line 415: Line 442:
 
'''(17)'''&nbsp; New setting:&nbsp;  IDFT of spectrum&nbsp; $\rm (L)$:&nbsp; Gaussian spectrum.&nbsp; Interpret the result in the time domain.}}
 
'''(17)'''&nbsp; New setting:&nbsp;  IDFT of spectrum&nbsp; $\rm (L)$:&nbsp; Gaussian spectrum.&nbsp; Interpret the result in the time domain.}}
 
:*&nbsp;Here, the time function&nbsp; $x(t)$&nbsp; is Gaussian with the maximum&nbsp; $x(t=0)=4$.&nbsp; For the spectrum the following applies:&nbsp; $X(f=0)=D(0)/f_\textrm{A} = 16 \cdot \textrm{kHz}^{-1}$.
 
:*&nbsp;Here, the time function&nbsp; $x(t)$&nbsp; is Gaussian with the maximum&nbsp; $x(t=0)=4$.&nbsp; For the spectrum the following applies:&nbsp; $X(f=0)=D(0)/f_\textrm{A} = 16 \cdot \textrm{kHz}^{-1}$.
:*&nbsp;The equivalent duration of the impulse is&nbsp; $\Delta t = X(f=0)/x(t=0)=4\text{ ms}$.&nbsp; The inverse value gives the equivalent bandwidth&nbsp; $\Delta f = 1/\Delta t = 250\text{ Hz}$.
+
:*&nbsp;The equivalent duration of the pulse  is&nbsp; $\Delta t = X(f=0)/x(t=0)=4\text{ ms}$.&nbsp; The inverse value gives the equivalent bandwidth&nbsp; $\Delta f = 1/\Delta t = 250\text{ Hz}$.
  
  
Line 425: Line 452:
 
==Applet Manual==
 
==Applet Manual==
 
<br>
 
<br>
[[File:Anleitung_DFT_endgültig.png|left|600px]]
+
[[File:Anleitung_DFT_endgültig.png|left|600px|frame|Screenshot of the German version]]
 
&nbsp; &nbsp; '''(A)''' &nbsp; &nbsp; Time domain (input and result field)  
 
&nbsp; &nbsp; '''(A)''' &nbsp; &nbsp; Time domain (input and result field)  
  
Line 454: Line 481:
 
:(a)&nbsp; corresponding number field,&nbsp; (b)&nbsp; DC signal,&nbsp; (c)&nbsp;  Complex exponential function of time,&nbsp; (d)&nbsp;  Harmonic oscillation &nbsp;$($phase &nbsp;$\varphi = 45^\circ)$,
 
:(a)&nbsp; corresponding number field,&nbsp; (b)&nbsp; DC signal,&nbsp; (c)&nbsp;  Complex exponential function of time,&nbsp; (d)&nbsp;  Harmonic oscillation &nbsp;$($phase &nbsp;$\varphi = 45^\circ)$,
 
:(e)&nbsp; Cosine signal (one period),&nbsp; (f)&nbsp; Sine signal (one period),&nbsp; (g)&nbsp;  Cosine signal (two periods),&nbsp;(h)&nbsp;  Alternating time coefficients,   
 
:(e)&nbsp; Cosine signal (one period),&nbsp; (f)&nbsp; Sine signal (one period),&nbsp; (g)&nbsp;  Cosine signal (two periods),&nbsp;(h)&nbsp;  Alternating time coefficients,   
:&nbsp; (i)&nbsp; Dirac pulse,&nbsp; (j)&nbsp; Rectangular pulse,&nbsp; (k)&nbsp;  Triangular pulse,&nbsp; (l)&nbsp;  Gaussian pulse.
+
:&nbsp; (i)&nbsp; Dirac delta pulse,&nbsp; (j)&nbsp; Rectangular pulse,&nbsp; (k)&nbsp;  Triangular pulse,&nbsp; (l)&nbsp;  Gaussian pulse.
  
 
*Given &nbsp;$D(\mu)$ assignments (for IDFT):
 
*Given &nbsp;$D(\mu)$ assignments (for IDFT):
Line 460: Line 487:
 
:(A)&nbsp; corresponding number field,&nbsp; (B)&nbsp; Constant spectrum,&nbsp; (C)&nbsp;  Complex exponential function of frequency,&nbsp; (D)&nbsp;  equivalent to setting (d) in time domain ,
 
:(A)&nbsp; corresponding number field,&nbsp; (B)&nbsp; Constant spectrum,&nbsp; (C)&nbsp;  Complex exponential function of frequency,&nbsp; (D)&nbsp;  equivalent to setting (d) in time domain ,
 
:(E)&nbsp; Cosine signal (one frequency period),&nbsp; (F)&nbsp; Sine signal (one frequency period),&nbsp; (G)&nbsp;  Cosine signal (two frequency periods),&nbsp; (H)&nbsp;  Alternating spectral coefficients,
 
:(E)&nbsp; Cosine signal (one frequency period),&nbsp; (F)&nbsp; Sine signal (one frequency period),&nbsp; (G)&nbsp;  Cosine signal (two frequency periods),&nbsp; (H)&nbsp;  Alternating spectral coefficients,
:(I)&nbsp; Dirac spectrum,&nbsp; (J)&nbsp; Rectangular spectrum,&nbsp; (K)&nbsp;  Triangular spectrum,&nbsp; (L)&nbsp;  Gaussian spectrum.   
+
:(I)&nbsp; Dirac delta spectrum,&nbsp; (J)&nbsp; Rectangular spectrum,&nbsp; (K)&nbsp;  Triangular spectrum,&nbsp; (L)&nbsp;  Gaussian spectrum.   
  
  
Line 466: Line 493:
  
 
This interactive calculation tool was designed and implemented at the&nbsp; [https://www.ei.tum.de/en/lnt/home/ Institute for Communications Engineering]&nbsp; at the&nbsp; [https://www.tum.de/en Technical University of Munich].  
 
This interactive calculation tool was designed and implemented at the&nbsp; [https://www.ei.tum.de/en/lnt/home/ Institute for Communications Engineering]&nbsp; at the&nbsp; [https://www.tum.de/en Technical University of Munich].  
*The first version was created in 2008 by [[Biografien_und_Bibliografien/An_LNTwww_beteiligte_Studierende#Thomas_Gro.C3.9Fer_.28Diplomarbeit_LB_2006.2C_danach_freie_Mitarbeit_bis_2010.29|Thomas Großer]]&nbsp; as part of his diploma thesis with “FlashMX – Actionscript” (Supervisor: [[Biographies_and_Bibliographies/An_LNTwww_beteiligte_Mitarbeiter_und_Dozenten#Prof._Dr.-Ing._habil._G.C3.BCnter_S.C3.B6der_.28am_LNT_seit_1974.29|Günter Söder]]).  
+
*The first version was created in 2008 by&nbsp; [[Biographies_and_Bibliographies/Students_involved_in_LNTwww#Thomas_Gro.C3.9Fer_.28Diplomarbeit_LB_2006.2C_danach_freie_Mitarbeit_bis_2010.29|&raquo;Thomas Großer&laquo;]]&nbsp; as part of his diploma thesis with “FlashMX – Actionscript” (Supervisor: [[Biographies_and_Bibliographies/LNTwww_members_from_LNT#Prof._Dr.-Ing._habil._G.C3.BCnter_S.C3.B6der_.28at_LNT_since_1974.29|Günter Söder]]).  
  
*Last revision and English version 2020/2021 by&nbsp; [[Biografien_und_Bibliografien/An_LNTwww_beteiligte_Studierende#Carolin_Mirschina_.28Ingenieurspraxis_Math_2019.2C_danach_Werkstudentin.29|Carolin Mirschina]]&nbsp; in the context of a working student activity.&nbsp; Translation using DEEPL.com.
+
*Last revision and English version 2020/2021 by&nbsp; [[Biographies_and_Bibliographies/Students_involved_in_LNTwww#Carolin_Mirschina_.28Ingenieurspraxis_Math_2019.2C_danach_Werkstudentin.29|&raquo;Carolin Mirschina&laquo;]]&nbsp; in the context of a working student activity.&nbsp;  
  
  

Latest revision as of 17:02, 6 July 2023

Open Applet in new Tab   Deutsche Version Öffnen


Applet Description


The conventional  »Fourier Transform«  $\rm (FT)$  allows the calculation of the spectral function  $X(f)$  of a time-continuous signal  $x(t)$. 

In contrast,  the  »Discrete Fourier Transform«  $\rm (DFT)$  is limited to a time-discrete signal,  represented by  $N$  time domain coefficients   $d(\nu)$  with indices  $\nu = 0, \text{...} , N\hspace{-0.1cm}-\hspace{-0.1cm}1$,  which can be interpreted as equidistant samples of the time-continuous signal  $x(t)$.

If the  »sampling theorem«  is fulfilled, the DFT algorithm likewise allows the calculation of  $N$  frequency domain coefficients  $D(\mu)$  with indices  $\mu = 0, \text{...} , N\hspace{-0.1cm}-\hspace{-0.1cm}1$.  These are equidistant samples of the frequency-continuous spectrum  $X(f)$.

  • The applet illustrates the properties of the  $\text{DFT:}\hspace{0.3cm}d(\nu)\hspace{0.1cm} \Rightarrow \hspace{0.1cm} D(\mu)$  by using the example  $N=16$.  The default   $d(\nu)$ assignments for the DFT are:
$\rm (a)$  According to the input field,  $\rm (b)$  Constant signal,  $\rm (c)$  Complex exponential time function ,  $\rm (d)$  Harmonic oscillation  $($with  phase  $\varphi = 45^\circ)$,
$\rm (e)$  Cosine signal  $($one period$)$,  $\rm (f)$  Sinusoidal signal  $($one period$)$,  $\rm (g)$  Cosine signal  $($two periods$)$,  $\rm (h)$  Alternating time coefficients,
$\rm (i)$  Dirac delta impulse,  $\rm (j)$  Rectangular pulse ,  $\rm (k)$  Triangular pulse,  $\rm (l)$  Gaussian pulse.
  • Possible  $D(\mu)$ assignments for the Inverse Discrete Fourier Transform   ⇒   $\text{IDFT:}\hspace{0.3cm}D(\mu)\hspace{0.1cm} \Rightarrow \hspace{0.1cm} d(\nu)$  are:
$\rm (A)$  According to the input field,  $\rm (B)$  Constant spectrum,  $\rm (C)$  Complex exponential function (of frequency),  $\rm (D)$  Equivalent to setting  $\rm (d)$  in the time domain,
$\rm (E)$  Cosine spectrum  $($one frequency period$)$,  $\rm (F)$  Sinusoidal spectrum  $($one frequency period$)$,  $\rm (G)$  Cosine spectrum  $($two frequency periods$)$, 
$\rm (H)$  Alternating spectral coefficients,  $\rm (I)$  Dirac delta spectrum,  $\rm (J)$  Rectangular spectrum,  $\rm (K)$  Triangular spectrum,  $\rm (L)$  Gaussian spectrum.


The applet uses the framework  »Plot.ly«.


Theoretical Background


Arguments for the discrete realization of the Fourier transform

The  »Fourier transform«  according to the conventional description for continuous-time signals has an infinitely high selectivity due to the unlimited extension of the integration interval and is therefore an ideal theoretical tool for spectral analysis.

If the spectral components  $X(f)$  of a time function  $x(t)$  are to be determined numerically,  the general transformation equations

$$\begin{align*}X(f) & = \int_{-\infty }^{+\infty}x(t) \cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi f t}\hspace{0.1cm} {\rm d}t\hspace{0.5cm} \Rightarrow\hspace{0.5cm} \text{Forward transformation}\hspace{0.7cm} \Rightarrow\hspace{0.5cm} \text{First Fourier integral} \hspace{0.05cm},\\ x(t) & = \int_{-\infty }^{+\infty}\hspace{-0.15cm}X(f) \cdot {\rm e}^{\hspace{0.05cm}+{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi f t}\hspace{0.1cm} {\rm d}f\hspace{0.35cm} \Rightarrow\hspace{0.5cm} \text{Backward transformation}\hspace{0.4cm} \Rightarrow\hspace{0.5cm} \text{Second Fourier integral} \hspace{0.05cm}\end{align*}$$

are unsuitable for two reasons:

  • The equations apply exclusively to continuous-time signals.  With digital computers or signal processors,  however,  only discrete-time signals can be processed.
  • For a numerical evaluation of the two Fourier integrals it is necessary to limit the respective integration interval to a finite value.


$\text{This results in the following consequence:}$ 

A  »continuous-time signal«  must undergo two processes before the numerical determination of its spectral properties, viz.

  •   »sampling«  for discretization,  and
  •   »windowing«  to limit the integration interval.


In the following,  starting from an aperiodic time function  $x(t)$  and the corresponding Fourier spectrum  $X(f)$,  a discrete-time and discrete-frequency description suitable for computer processing is presented.


Time discretization – periodization in the frequency domain

The following graphs uniformly show the time domain on the left and the frequency domain on the right.  Without restriction of generality,  $x(t)$  and  $X(f)$  are real and Gaussian,  respectively.

Discretization in the time domain – periodization in the frequency domain

One can describe the sampling of the time signal  $x(t)$  by multiplication with a Dirac delta pulse  $p_{\delta}(t)$.  This results in the time signal sampled at distance  $T_{\rm A}$: 

$${\rm A}\{x(t)\} = \sum_{\nu = - \infty }^{+\infty} T_{\rm A} \cdot x(\nu \cdot T_{\rm A})\cdot \delta (t- \nu \cdot T_{\rm A} )\hspace{0.05cm}.$$

We now transform this sampled signal  $\text{A}\{ x(t)\}$  into the frequency domain. The multiplication of the Dirac delta pulse  $p_{\delta}(t)$  with  $x(t)$  corresponds in the frequency domain to the convolution of  $P_{\delta}(f)$  with  $X(f)$.  The periodized spectrum  $\text{P}\{ X(f)\}$ is obtained,  where  $f_{\rm P}$  is the frequency period of the function  $\text{P}\{ X(f)\}$: 

$${\rm A}\{x(t)\} \hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{X(f)\} = \sum_{\mu = - \infty }^{+\infty} X (f- \mu \cdot f_{\rm P} )\hspace{0.5cm} {\rm with }\hspace{0.5cm}f_{\rm P}= {1}/{T_{\rm A}}\hspace{0.05cm}.$$
  • We call the sampled signal  $\text{A}\{ x(t)\}$.
  • The  »frequency period«  is denoted by  $f_{\rm P}$ = $1/T_{\rm A}$. 


The graph above shows the functional relationship described here.  It should be noted:

  1. The frequency period  $f_{\rm P}$  was deliberately chosen small here so that the overlap of the spectra to be summed can be clearly seen.
  2. In practice,  due to the sampling theorem,  $f_{\rm P}$  should be at least twice as large as the largest frequency contained in the signal  $x(t)$. 
  3. If this is not fulfilled,  »aliasing«  must be expected.


Frequency discretization – periodization in the time domain

The discretization of  $X(f)$  can also be described by a multiplication with a Dirac delta pulse. The result is the spectrum sampled at distance  $f_{\rm A}$: 

$${\rm A}\{X(f)\} = X(f) \cdot \sum_{\mu = - \infty }^{+\infty} f_{\rm A} \cdot \delta (f- \mu \cdot f_{\rm A } ) = \sum_{\mu = - \infty }^{+\infty} f_{\rm A} \cdot X(\mu \cdot f_{\rm A } ) \cdot\delta (f- \mu \cdot f_{\rm A } )\hspace{0.05cm}.$$
  • Transforming the frequency Dirac delta pulse used here  $($with pulse weights  $f_{\rm A})$  into the time domain,  we obtain with  $T_{\rm P} = 1/f_{\rm A}$:
$$\sum_{\mu = - \infty }^{+\infty} f_{\rm A} \cdot \delta (f- \mu \cdot f_{\rm A } ) \hspace{0.2cm}\bullet\!\!-\!\!\!-\!\!\!-\!\!\circ\, \hspace{0.2cm} \sum_{\nu = - \infty }^{+\infty} \delta (t- \nu \cdot T_{\rm P } ) \hspace{0.05cm}.$$
  • The multiplication with  $X(f)$  corresponds in the time domain to the convolution with  $x(t)$. The signal  $\text{P}\{ x(t)\}$ periodized at distance  $T_{\rm P}$  is obtained:
$${\rm A}\{X(f)\} \hspace{0.2cm}\bullet\!\!-\!\!\!-\!\!\!-\!\!\circ\, \hspace{0.2cm} {\rm P}\{x(t)\} = x(t) \star \sum_{\nu = - \infty }^{+\infty} \delta (t- \nu \cdot T_{\rm P } )= \sum_{\nu = - \infty }^{+\infty} x (t- \nu \cdot T_{\rm P } ) \hspace{0.05cm}.$$


Discretization in the frequency domain – periodization in the time domain

$\text{Example 1:}$  This relationship is illustrated in the graph:


  1. Due to the coarse frequency rastering,  this example results in a relatively small value for the time period  $T_{\rm P}$. 

  2. Therefore,  the  $($blue$)$  periodized time signal  $\text{P}\{ x(t)\}$  differs significantly from  $x(t)$ due to overlaps.


Finite signal representation

One arrives at the so-called  »finite signal representation« 

  • when both the time function  $x(t)$  and
  • the spectral function  $X(f)$
Finite signals of the Discrete Fourier Transform

are specified exclusively by their sample values:

The graph is to be interpreted as follows:

  • In the left graph the function  $\text{A}\{ \text{P}\{ x(t)\}\}$  is drawn in blue.  It is obtained by sampling the periodized time function  $\text{P}\{ x(t)\}$  with equidistant Dirac delta pulses in the distance  $T_{\rm A} = 1/f_{\rm P}$.
  • In the right graph the function  $\text{P}\{ \text{A}\{ X(f)\}\}$  is drawn in green.  This results from periodization  $($with  $f_{\rm P})$  of the sampled spectral function  $\{ \text{A}\{ X(f)\}\}$.
  • There is also a Fourier correspondence between the blue finite signal and the green finite signal,  as follows:
$${\rm A}\{{\rm P}\{x(t)\}\} \hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{{\rm A}\{X(f)\}\} \hspace{0.05cm}.$$

However,  the Dirac delta lines of the periodic continuation  $\text{P}\{ \text{A}\{ X(f)\}\}$  of the sampled spectral function fall into the same frequency grid as those of  $\text{A}\{ X(f)\}$  only if the frequency period  $f_{\rm P}$  is an integer multiple  $(N)$  of the frequency sampling interval  $f_{\rm A}$. 

When using the finite signal representation,  the following condition must always be fulfilled,  where in practice a power of two is usually used for the natural number  $N$  $($the graph above is based on the value  $N = 8)$:

$$f_{\rm P} = N \cdot f_{\rm A} \hspace{0.5cm} \Rightarrow\hspace{0.5cm} {1}/{T_{\rm A} }= N \cdot f_{\rm A} \hspace{0.5cm} \Rightarrow\hspace{0.5cm} N \cdot f_{\rm A}\cdot T_{\rm A} = 1\hspace{0.05cm}.$$


If the condition  $N \cdot f_{\rm A} \cdot T_{\rm A} = 1$  is satisfied, the order of periodization and sampling can be interchanged. Thus:

$${\rm A}\{{\rm P}\{x(t)\}\} = {\rm P}\{{\rm A}\{x(t)\}\}\hspace{0.2cm}\circ\!\!-\!\!\!-\!\!\!-\!\!\bullet\, \hspace{0.2cm} {\rm P}\{{\rm A}\{X(f)\}\} = {\rm A}\{{\rm P}\{X(f)\}\}\hspace{0.05cm}.$$

$\text{Conclusions:}$ 

  1. The time function  $\text{P}\{ \text{A}\{ x(t)\}\}$  has the period  $T_{\rm P} = N \cdot T_{\rm A}$.
  2. The period in the frequency domain is  $f_{\rm P} = N \cdot f_{\rm A}$.
  3. For the description of the discretized time and frequency course  $N$  »complex numerical values« in the form of pulse weights are sufficient in each case.


$\text{Example 2:}$  A time-limited  $($pulse-like$)$  signal  $x(t)$  is present in sampled form,  where the distance between two samples is  $T_{\rm A} = 1\, {\rm µ s}$: 

  • After a discrete Fourier transform with  $N = 512$  the spectrum  $X(f)$  is available as samples with the distance  $f_{\rm A} = (N \cdot T_{\rm A})^{–1} \approx 1.953\,\text{kHz} $. 
  • Increasing the DFT parameter to  $N= 2048$ results  in a finer frequency grid with  $f_{\rm A} \approx 488\,\text{Hz}$.


Discrete Fourier Transform

From the conventional  »first Fourier integral«

$$X(f) =\int_{-\infty }^{+\infty}x(t) \cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi \hspace{0.05cm}\cdot \hspace{0.05cm} f \hspace{0.05cm}\cdot \hspace{0.05cm}t}\hspace{0.1cm} {\rm d}t$$

»discretization«  $(\text{d}t \to T_{\rm A}$,  $t \to \nu \cdot T_{\rm A}$,  $f \to \mu \cdot f_{\rm A}$,  $T_{\rm A} \cdot f_{\rm A} = 1/N)$  yields the sampled and periodized spectral function

$${\rm P}\{X(\mu \cdot f_{\rm A})\} = T_{\rm A} \cdot \sum_{\nu = 0 }^{N-1} {\rm P}\{x(\nu \cdot T_{\rm A})\}\cdot {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi \hspace{0.05cm} \cdot \hspace{0.05cm}\nu \hspace{0.05cm} \cdot \hspace{0.05cm}\mu /N} \hspace{0.05cm}.$$

It is taken into account that due to the discretization the periodized functions have to be used in each case.

For reasons of a simplified notation we now make the following substitutions:

  • Let the  $N$  »time-domain coefficients«  be associated with the indexing variable  $\nu = 0$, ... , $N - 1$:
$$d(\nu) = {\rm P}\left\{x(t)\right\}{\big|}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm A}}\hspace{0.05cm}.$$
  • Let the  $N$  »frequency-domain coefficients«  be associated with the indexing variable  $\mu = 0,$ ... , $N$ – 1:
$$D(\mu) = f_{\rm A} \cdot {\rm P}\left\{X(f)\right\}{\big|}_{f \hspace{0.05cm}= \hspace{0.05cm}\mu \hspace{0.05cm}\cdot \hspace{0.05cm}f_{\rm A}}\hspace{0.05cm}.$$
  • Abbreviation for the  »complex rotation factor«  depending on  $N$  is written:
$$w = {\rm e}^{-{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi /N} = \cos \left( {2 \pi}/{N}\right)-{\rm j} \cdot \sin \left( {2 \pi}/{N}\right) \hspace{0.05cm}.$$

$\text{Definition:}$  The term  »Discrete Fourier Transform«  $\rm (DFT)$  means the calculation of the  $N$  spectral coefficients  $D(\mu)$  from the  $N$  signal coefficients  $d(\nu)$:

On the definition of the Discrete Fourier Transform  $\rm (DFT)$  with  $N=8$
$$D(\mu) = \frac{1}{N} \cdot \sum_{\nu = 0 }^{N-1} d(\nu)\cdot {w}^{\hspace{0.05cm}\nu \hspace{0.03cm} \cdot \hspace{0.05cm}\mu} \hspace{0.05cm}. $$



In the graph you can see in an example

  1. the  $N = 8$  signal coefficients  $d(\nu)$  at the blue filling,
  2. the  $N = 8$  spectral coefficients  $D(\mu)$  at the green filling.


Inverse Discrete Fourier Transform

The  »Inverse Discrete Fourier Transform«  describes the  »second Fourier integral«:

$$\begin{align*}x(t) & = \int_{-\infty }^{+\infty}X(f) \cdot {\rm e}^{\hspace{0.05cm}{\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi \hspace{0.05cm}\cdot \hspace{0.05cm} f \hspace{0.05cm}\cdot \hspace{0.05cm} t}\hspace{0.1cm} {\rm d}f\end{align*}$$

in discretized form:  

$$d(\nu) = {\rm P}\left\{x(t)\right\}{\big|}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm A}}\hspace{0.01cm}.$$

$\text{Definition:}$  The term  »Inverse Discrete Fourier Transform«  $\rm (IDFT)$  refers to the calculation of the signal coefficients  $d(\nu)$  from the spectral coefficients  $D(\mu)$:

For the definition of the IDFT with  $N=8$
$$d(\nu) = \sum_{\mu = 0 }^{N-1} D(\mu) \cdot {w}^{-\nu \hspace{0.03cm} \cdot \hspace{0.05cm}\mu} \hspace{0.05cm}.$$

With the indexing variables 

  • $\nu = 0, \hspace{0.05cm}\text{...} \hspace{0.05cm}, N-1$,
  • $\mu = 0, \hspace{0.05cm}\text{...} \hspace{0.05cm}, N-1$,:


then holds:

  1. $d(\nu) = {\rm P}\left\{x(t)\right\}{\big \vert}_{t \hspace{0.05cm}= \hspace{0.05cm}\nu \hspace{0.05cm}\cdot \hspace{0.05cm}T_{\rm A} }\hspace{0.01cm},$
  2. $D(\mu) = f_{\rm A} \cdot {\rm P}\left\{X(f)\right\}{\big \vert}_{f \hspace{0.05cm}= \hspace{0.05cm}\mu \hspace{0.05cm}\cdot \hspace{0.05cm}f_{\rm A} } \hspace{0.01cm},$
  3. $w = {\rm e}^{- {\rm j} \hspace{0.05cm}\cdot \hspace{0.05cm} 2 \pi /N} \hspace{0.01cm}.$


A comparison between DFT and IDFT shows that exactly the same algorithm can be used. The only differences of the IDFT compared to the DFT are:

  • The exponent of the rotation factor must be applied with different sign.
  • With the IDFT the division by  $N$  is omitted.


Interpretation of DFT and IDFT

The graph shows the discrete coefficients in the time and frequency domain together with the periodized continuous-time functions.

Time and frequency domain coefficients of the DFT

When using DFT or IDFT,  it should be noted:

  • According to the above definitions,  the DFT coefficients  $d(ν)$  and  $D(\mu)$  always have the unit of the time function.
  • Dividing  $D(\mu)$  by  $f_{\rm A}$  gives the spectral value  $X(\mu \cdot f_{\rm A})$.
  • The spectral coefficients  $D(\mu)$  must always be set complex to be able to consider also odd time functions.
  • In order to be able to transform band–pass signals in the equivalent low–pass range,  complex time coefficients  $d(\nu)$ are usually used.
  • The basic interval for  $\nu$  and  $\mu$  is usually defined as the range from  $0$  to  $N - 1$,  as in the above diagram.
  • With the complex-valued number sequences 
    • $\langle \hspace{0.03cm}d(\nu)\hspace{0.03cm}\rangle = \langle \hspace{0.03cm}d(0), \hspace{0.05cm}\text{...} \hspace{0.05cm} , d(N-1) \hspace{0.03cm}\rangle$,
    • $\langle \hspace{0.03cm}D(\mu)\hspace{0.03cm}\rangle = \langle \hspace{0.03cm}D(0), \hspace{0.05cm}\text{...} \hspace{0.05cm} , D(N-1) \hspace{0.03cm}\rangle$: 


⇒   DFT and IDFT are symbolized similar to the conventional Fourier transform:
$$\langle \hspace{0.03cm} D(\mu)\hspace{0.03cm}\rangle \hspace{0.2cm}\bullet\!\!-\!\!\!-(N)\!-\!\!\!-\!\!\hspace{0.05cm}\circ\, \hspace{0.2cm} \langle \hspace{0.03cm} d(\nu) \hspace{0.03cm}\rangle \hspace{0.05cm}.$$
  • If the function  $x(t)$  is already limited to the range  $0 \le t \lt N \cdot T_{\rm A}$,  then the time coefficients output by the IDFT directly indicate the samples of the time function:  
$$d(\nu) = x(\nu \cdot T_{\rm A}).$$
  • If  $x(t)$  is shifted with respect to the basic interval,  one has to choose the assignment between  $x(t)$  and the coefficients  $d(\nu)$  as shown in  $\text{Example 3}$. 


$\text{Example 3:}$  The upper graph shows the asymmetric triangular pulse  $x(t)$  whose absolute width is smaller than  $T_{\rm P} = N \cdot T_{\rm A}$.

On assigning of the DFT coefficients with  $N=8$

The sketch below shows the assigned DFT coefficients valid for  $N = 8$:

  • For  $\nu = 0,\hspace{0.05cm}\text{...} \hspace{0.05cm} , N/2 = 4$,    $d(\nu) = x(\nu \cdot T_{\rm A})$   is valid:
$$d(0) = x (0)\hspace{0.05cm}, \hspace{0.15cm} d(1) = x (T_{\rm A})\hspace{0.05cm}, \hspace{0.15cm} d(2) = x (2T_{\rm A})\hspace{0.05cm}, $$
$$d(3) = x (3T_{\rm A})\hspace{0.05cm}, \hspace{0.15cm} d(4) = x (4T_{\rm A})\hspace{0.05cm}.$$
  • The coefficients  $d(5)$,  $d(6)$  and  d$(7)$  are to be set as follows:
$$d(\nu) = x \big ((\nu\hspace{-0.05cm} - \hspace{-0.05cm} N ) \cdot T_{\rm A}\big ) $$
$$ \Rightarrow \hspace{0.2cm}d(5) = x (-3T_{\rm A})\hspace{0.05cm}, \hspace{0.35cm} d(6) = x (-2T_{\rm A})\hspace{0.05cm}, \hspace{0.35cm} d(7) = x (-T_{\rm A})\hspace{0.05cm}.$$




Exercises


Aufgaben 2D-Gauss.png
  • First select the number  $($1, ...$)$  of the exercise.
  • A description of the exercise will be displayed.
  • The parameter values are adjusted.
  • Solution after pressing  »Show solution«.
  • The number  "$0$"  corresponds to a  »Reset«:
  1. Same setting as at program start.
  2. Output of a  »reset text«  with further explanations about the applet.


(1)  New setting:  DFT of signal  $\rm (b)$:  Constant signal.  Interpret the result in the frequency domain.  What is the analogon of the conventional Fourier transform?

  •  All coefficients in the time domain are  $d(\nu)=1$.  Thus all  $D(\mu)=0$  with the exception of  $\textrm{Re}[D(0)]=1$.
  •  This corresponds to the conventional  $($time-continuous$)$  Fourier Transform:  $x(t)=A\hspace{0.15cm} \circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm} X(f)=A\cdot \delta (f=0)$  with  $A=1$.

(2)  Assume the obtained  $D(\mu)$  field and shift all coefficients one entry down.  Which time function does the IDFT provide?

  •  Now all  $D(\mu)=0$,  except for  $\textrm{Re}[D(1)]=1$.  The result in the time domain is a complex exponential function.
  •  The real part of the  $d(\nu)$  field shows a cosine and the imaginary part a sine function.  For each function one can see one period respectively.

(3)  Add the following coefficient to the current  $D(\mu)$ field:  $\textrm{Im}[D(1)]=1$.  What are the differences compared to  (2)  in the time domain?  

  •  On the one hand,  a phase shift of two support values can now be detected for the real and the imaginary parts.  This corresponds to the phase  $\varphi = 45^\circ$.
  •  On the other hand,  the amplitudes of the real and the imaginary part were each increased by the factor  $\sqrt{2}$.

(4)  Set the  $D(\mu)$ field  to zero except for  $\textrm{Re}[D(1)]=1$.  Which additional  $D(\mu)$  coefficient yields a real  $d(\nu)$  field?

  •  By trial and error,  one can see that  $\textrm{Re}[D(15)]=1$  must apply additionally.  Then the  $d(\nu)$  field describes a cosine.
  •  The following applies to the conventional  $($time continuous$)$  Fourier transform:  $x(t)=2\cdot \cos(2\pi \cdot f_0 \cdot t)\hspace{0.15cm}\circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm} X(f)=\delta (f-f_0)+\delta (f+f_0)$.
  •  The entry  $D(1)$  is representative of the frequency  $f_0$  and due to the periodicity with  $N=16$  the frequency  $-f_0$  is expressed by  $D(15)=D(-1)$.

(5)  According to the IDFT in the  $d(\nu)$  field, by which  $D(\mu)$  field does one obtain a real cosine function with the amplitude  $A=1$?

  •  Like the conventional Fourier transform the discrete Fourier Transform is linear  ⇒   $D(1)=D(15)=0.5$.

(6)  New setting:  DFT of signal  $\rm (e)$:  Cosine signal and subsequent signal shifts.  What are the effects of these shifts in the frequency domain?

  •  A shift in the time domain changes the cosine signal to a  "harmonic oscillation"  with arbitrary phase.
  •  The  $D(\mu)$  field is still zero except for  $D(1)$  and  $D(15)$.  The absolute values  $|D(1)|$  and  $|D(15)|$  also remain the same.
  •  The only change concerns the phase,  i.e. the different distribution of the absolute values between the real and imaginary part.

(7)  New setting:  DFT of signal  $\rm (f)$:  Sinusoidal signal.  Interpret the result in the frequency domain.  What is the analogon of the conventional Fourier Transform?

  •  The sine signal results from the cosine signal by applying four time shifts.  Therefore all statements of  (6)  are still valid.
  •  For the conventional (time continuous) Fourier transform it holds that  $x(t)= \sin(2\pi \cdot f_0 \cdot t)\hspace{0.15cm}\circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm} X(f)=j/2 \cdot [\delta (f+f_0)-\delta (f-f_0)]$.
  •  The coefficient  $D(1)$   $\Rightarrow$  $($frequency:  $+f_0)$  is imaginary and has the imaginary part  $-0.5$.  Accordingly,  $\textrm{Im}[D(15)]=+0.5$   ⇒   $($frequency:  $-f_0)$  applies.

(8)  New setting:  DFT of signal  $\rm (g)$:  Cosine signal (two periods).  Interpret the result in comparison to exercise  (5).

  •  Here the time continuous Fourier transform reads  $x(t)=\cos(2\pi \cdot (2 f_0) \cdot t)\hspace{0.15cm}\circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm}X(f)=0.5 \cdot \delta (f- 2 f_0)+0.5 \cdot \delta (f+ 2 f_0)$.
  •  $D(2)$  is representative of the frequency  $2 f_0$.  Due to the periodicity,  $D(14)=D(-2)$:   $D(2)=D(14)=0.5$ is representative of the frequency  $-2 f_0$.

(9)  Now examine the case DFT of a sinodial signal (two periods).  Which modifications do you need to make in the time domain?  Interpret the result.

  •  The desired signal can be obtained from the DFT of signal  $\rm (g)$:  Cosine signal (two periods) with two shifts.  With the result of  (7):  Four shifts.
  •  The DFT result is accordingly  $\textrm{Im}[D(2)]=-0.5$  and  $\textrm{Im}[D(14)]=+0.5$.

(10)  New setting: DFT of signal  $\rm (h)$:  Alternating time coefficients.  Interpret the DFT result.

  •  Here, the time continuous Fourier transform is given by:  $x(t)=\cos(2\pi \cdot (8 f_0) \cdot t)\hspace{0.15cm}\circ\!\!\!-\!\!\!-\!\!\!-\!\!\bullet\hspace{0.15cm} X(f)=0.5 \cdot \delta (f- 8 f_0)+0.5 \cdot \delta (f+ 8 f_0)$.
  •  $8 f_0$ is the highest frequency that can be displayed with  $N=16$  in the DFT.  There are only two sampled values per period, namely $+1$ and $-1$.
  •  Difference to exercise  (5):  $D(1)=0.5$  now becomes  $D(8)=0.5$.  Likewise,  $D(15)=0.5$  is shifted to  $D(8)=0.5$.  Final result:  $D(8)=1$.

(11)  What are the differences between the two settings DFT from signal  $\rm (i)$:  Dirac delta impulse and   IDFT from spectrum  $\rm (I)$:  Dirac delta spectrum?

  •  None! In the first case, all coefficients are  $D(\mu)=1$ (real);  in the second case, however, equivalently  $d(\nu)=1$ (real).

(12)  Are there differences in shifting the real  "$1$"  in the according input fields by one place at a time, that is for  $d(\nu = 1)=1$  and  $D(\mu = 1)=1$?

  •  The first case  $\Rightarrow$  $\textrm{Re}[d(\nu = 1)]=1$  results in the complex exponential function in the frequency domain given by  $X(f)= \textrm{e}^{-{\rm j}\hspace{0.05cm}\cdot\hspace{0.05cm} 2 \pi\hspace{0.05cm}\cdot\hspace{0.05cm} f/f_0}$  with negative sign.
  •  The second case  $\Rightarrow$  $\textrm{Re}[D(\mu = 1)]=1$ results in the complex exponential function in the time domain given by  $x(t)= \textrm{e}^{+{\rm j}\hspace{0.05cm}\cdot\hspace{0.05cm} 2 \pi\hspace{0.05cm}\cdot\hspace{0.05cm} f_0\cdot t}$  with positive sign.
  •  Note:  With  $\textrm{Re}[D(\mu=15)]=1$  the result in the time domain would also be a complex exponential function  $x(t)= \textrm{e}^{-{\rm j}\hspace{0.05cm}\cdot\hspace{0.05cm} 2 \pi\hspace{0.05cm}\cdot\hspace{0.05cm} f_0\hspace{0.05cm}\cdot\hspace{0.05cm} t}$ with negative sign.

(13)  New setting: DFT of signal  $\rm (k)$:  Triangle pulse.  Interpret the  $d(\nu)$  assignment under the assumption  $T_\textrm{A} = 1$ ms.

  •  Change the display to "absolute value".  $x(t)$ is symmetrical around  $t=0$  and extends from  $-8 \cdot T_\textrm{A} = -8$  ms to  $+8 \cdot T_\textrm{A}= +8$  ms.
  •  $d(\nu)$  assignment:  $d(0)=x(0)=1$,  $d(1)=x(T_\textrm{A})=0.875$, ... ,  $d(8)=x(8 T_\textrm{A})=0$,  $d(9)=x(-7 T_\textrm{A})=0.125$, ... ,  $d(15)=x(-T_\textrm{A})=0.875$.

(14)  Same setting as  (13).  Interpret the DFT result, especially the coefficients  $D(0)$,  $D(1)$,  $D(2)$  and  $D(15)$.

  • In the frequency range  $D(0)$  stands for the frequency  $f=0$  and  $D(1)$  and  $D(15)$  for the frequencies  $\pm f_\textrm{A}$.  It holds that  $f_\textrm{A}= 1/ (N\cdot T_\textrm{A})=62.5$  Hz.
  • For the value of the continuous spectrum at $f=0$ the following applies:   $X(f=0)=D(0)/f_\textrm{A} = 0.5/ (0.0625$ kHz$)=8\cdot \textrm{kHz}^{-1}$.
  • The first zero of the  $\textrm{si}^2$–shaped spectrum  $X(f)$  occurs at  $2\cdot f_\textrm{A} = 125$ Hz.  The other zeros are equidistant.

(15)  New setting: DFT of signal  $\rm (i)$:  Rectangular pulse.  Interpret the displayed results.

  •  The set (symmetrical) rectangle extends over  $\pm 4 \cdot T_\textrm{A}$.  At the edges, the time coefficients are only half as large:  $d(4)=d(12)=0.5$.
  • The further statements of  (14)  also apply to this  $\textrm{si}$–shaped spectrum  $X(f)$.

(16)  Same setting as for  (15).  Which modifications need to be made in the  $d(\nu)$  field, to have the duration of the rectangle   $\Rightarrow$   $\pm 2 \cdot T_\textrm{A}$.

  •  $d(0) = d(1) = d(15) =1, \ d(2) = d(14) = 0.5$. All other time coefficients zero  ⇒   first zero of the  ${\rm si}$ spectrum at  $4 \cdot f_{\rm A}= 250\text{ Hz}$.

(17)  New setting:  IDFT of spectrum  $\rm (L)$:  Gaussian spectrum.  Interpret the result in the time domain.

  •  Here, the time function  $x(t)$  is Gaussian with the maximum  $x(t=0)=4$.  For the spectrum the following applies:  $X(f=0)=D(0)/f_\textrm{A} = 16 \cdot \textrm{kHz}^{-1}$.
  •  The equivalent duration of the pulse is  $\Delta t = X(f=0)/x(t=0)=4\text{ ms}$.  The inverse value gives the equivalent bandwidth  $\Delta f = 1/\Delta t = 250\text{ Hz}$.




Applet Manual


Screenshot of the German version

    (A)     Time domain (input and result field)

    (B)     (A) representation numerical, graphical, magnitude

    (C)     frequency domain (input and result field)

    (D)     (C) representation numerical, graphical, magnitude

    (E)     Selection: DFT  $(t \to f)$  or IDFT  $(f \to t)$

    (F)     Given  $d(\nu)$ assignments (if DFT), or

                    Given  $D(\mu)$ assignments (if IDFT)

    (G)     Set input field to zero

    (H)     Move input field cyclically down (or up)

    ( I )     Range for experiment execution:   exercise selection

    (J)     Range for experiment execution:   exercise definition

    (K)     Range for experiment execution:   show sample solution

  • Given  $d(\nu)$ assignments (for DFT):
(a)  corresponding number field,  (b)  DC signal,  (c)  Complex exponential function of time,  (d)  Harmonic oscillation  $($phase  $\varphi = 45^\circ)$,
(e)  Cosine signal (one period),  (f)  Sine signal (one period),  (g)  Cosine signal (two periods), (h)  Alternating time coefficients,
  (i)  Dirac delta pulse,  (j)  Rectangular pulse,  (k)  Triangular pulse,  (l)  Gaussian pulse.
  • Given  $D(\mu)$ assignments (for IDFT):
(A)  corresponding number field,  (B)  Constant spectrum,  (C)  Complex exponential function of frequency,  (D)  equivalent to setting (d) in time domain ,
(E)  Cosine signal (one frequency period),  (F)  Sine signal (one frequency period),  (G)  Cosine signal (two frequency periods),  (H)  Alternating spectral coefficients,
(I)  Dirac delta spectrum,  (J)  Rectangular spectrum,  (K)  Triangular spectrum,  (L)  Gaussian spectrum.


About the Authors

This interactive calculation tool was designed and implemented at the  Institute for Communications Engineering  at the  Technical University of Munich.

  • Last revision and English version 2020/2021 by  »Carolin Mirschina«  in the context of a working student activity. 


The conversion of this applet to HTML 5 was financially supported by  Studienzuschüsse  ("study grants") of the TUM Faculty EI. We thank them.


Once again: Open Applet in new Tab

Open Applet in new Tab   Deutsche Version Öffnen