Ω = Ω x ( t ) cos( 0 t ) Sampling of at sampling rate s 1. Multiplying impulse train. We have the following cosine signal with period T . 0 ⋅ π ( ) 2 = Ω = x c ( t ) cos t cos( t ) 0 T 0 π 2 Ω = π δ Ω − Ω + δ Ω + Ω Ω = And its Fourier transform. X c ( j ) ( ( ) ( )), 0 0 0 T 0 Obtaining a discrete time signal we should multiply x c ( t ) with impulse train function ∞ π ∞ π = ∑ 2 ( ) 2 ∑ δ − Ω = δ Ω − Ω Ω = h ( t ) ( t kT ) that has the Fourier transform H ( j ) k , . S S S T T = −∞ = −∞ k k S S ( ) ( ) = ⋅ x ( t ) x t h t x h ( t ) Let’s call this function . Fourier transform of is: h c ∞ 1 ∑ Ω = Ω − Ω X ( j ) X ( k ) . I’ve derived this equation from the formula h c S T = −∞ k S 1 ∞ ∫ ⇔ θ Ω − θ θ x ( t ) h ( t ) X ( j ) H ( j ( )) d . π − ∞ 2 2. Transforming From Continuous domain to Discrete domain ( ) ( ) ∑ 1 ∑ = = δ − = δ − . x t x tTs x ( nTs ) ( tTs nTs ) x ( nTs ) ( t n ) d h c c T n n S ( ) δ Here I’ve used ( ) t δ = at equation to obtain result. I will be using this formula for next a equations as well. If we take the Fourier transform of both sides: Ω ( ) ∞ 1 1 ∑ ∫ Ω = = δ − Ω j t X j X ( j ) x ( nTs ) ( t n ) e dt d h c − ∞ T T T n S S S ( ) 1 ∑ 1 = Ω = Ω = j n j x ( nTs ) e X ( e ), sin ce x [ n ] x nT c c S T T S n S So we have Ω ∞ Ω Ω Ω 1 1 ∑ ∑ Ω = = − Ω = π δ − Ω − Ω + δ − Ω + Ω j X ( e ) X ( j ) X ( k ) ( ( k ) ( k )) h c S S 0 S 0 T T T T T T = −∞ k k S S S S S S ∑ = π δ Ω − π − Ω + δ Ω − π + Ω ( k 2 T ) ( k 2 T ) S 0 S 0 k So we can safely write that: ( ) = ∑ ( ) ( ) ω π δ ω − π − ω + δ ω − π + ω j X e k 2 k 2 0 0 k ω = Ω where T 0 0 S
3. Transforming From Discrete domain to DFT DFT is defined for finite extend signals. It is also the samples of DTFT of this finite extended signal. Let’s say DFT size is N. We have the window = = − = w [ n ] 1 , for n 0 , 1 ,..., N 1 and w [ n ] 0 , otherwise π 2 ω = And DFT of x[n] for size N is samples of Fourier transform of x[n]*w[n] at k N So we convolve these functions in frequency domain and sample it. ( ) ( ) π 1 ( ) 2 ∫ = θ ω − θ θ ω = j j k X [ k ] X e W e d , where N π N 2 N < π > 2 ⎛ ⎞ ( ) ( ) ( ) 1 ∑ ( ) ∫ = ⎜ π δ θ − π − ω + δ θ − π + ω ⎟ ω − θ θ j k m 2 m 2 W e d N π 0 0 ⎝ ⎠ 2 < π > m 2 ( ( ) ( ) ) 1 ( ) ( ) ω − ω ω + ω = + j k j k W e W e N 0 N 0 2 ( ) ( ) ⎛ ω + ω ω − ω ⎞ ⎛ ⎞ ⎛ ⎞ k N k N ⎜ ⎜ ⎟ ⎜ ⎟ ⎟ N 0 N 0 sin sin ( )( ) ( )( ) ω + ω − ω − ω − k N 1 k N 1 ⎝ ⎠ ⎝ ⎠ ⎜ − − ⎟ 1 N 0 N 0 j 2 j 2 = + e 2 e 2 ⎜ ⎟ ω + ω ω − ω ⎛ ⎞ ⎛ ⎞ k k 2 ⎜ ⎟ ⎜ ⎟ ⎜ N 0 N 0 ⎟ sin sin ⎝ ⎠ ⎝ ⎠ ⎝ ⎠ 2 2 ω − ω 0 = If we find such a k so that k 0 then we can see perfect impulse at index k or N- N k and zero elsewhere. Otherwise the sinc function affects the shape of DFT; Figures: A Sampling process without aliasing: c (jf)| → o,|X h (jf)| → ^,|X r (jf)| → . |X Sampling of cos(2* π *0.2*t) at Fs = 2 1 2 x c (t) → --, x h (t) → | ^ , x r (t) → -. 0.5 1.5 Magnitude 0 1 -0.5 0.5 -1 0 0 2 4 6 -2 -1 0 1 2 t (sec) f (Hz) x [n] |X[k]|,N = 10. Impulse at k = 1 1 10 0.5 Magnitude Amplitude 0 5 -0.5 -1 0 0 5 10 -4 -2 0 2 4 n k
Here is the same x[n] sequence but this time from an aliased sampling process. c (jf)| → o,|X h (jf)| → ^,|X r (jf)| → . |X Sampling of cos(2* π *1.8*t) at Fs = 2 1 2 x c (t) → --, x h (t) → | ^ , x r (t) → -. 0.5 1.5 Magnitude 0 1 -0.5 0.5 -1 0 0 2 4 6 -2 -1 0 1 2 t (sec) f (Hz) x [n] |X[k]|,N = 10. Impulse at k = 1 1 10 0.5 Amplitude Magnitude 0 5 -0.5 -1 0 0 5 10 -4 -2 0 2 4 n k Here is an example where k is not integer… c (jf)| → o,|X h (jf)| → ^,|X r (jf)| → . |X Sampling of cos(2* π *0.5*t) at Fs = 2 1 2 x c (t) → --, x h (t) → | ^ , x r (t) → -. 0.5 1.5 Magnitude 0 1 -0.5 0.5 -1 0 0 2 4 6 -2 -1 0 1 2 t (sec) f (Hz) x [n] |X[k]|,N = 10. Impulse at k = 2.5 1 10 0.5 Magnitude Amplitude 0 5 -0.5 -1 0 0 5 10 -4 -2 0 2 4 n k
Recommend
More recommend