Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Digital Signal Processing. The Scientist and Engineers Guide. Steven W. Smith

.pdf
Скачиваний:
167
Добавлен:
02.05.2014
Размер:
7 Мб
Скачать
☆

Chapter 9- Applications of the DFT

177

This leads us to the flat-top window, shown in Fig. 9-5d. In some applications the amplitude of a spectral peak must be measured very accurately. Since the DFT’s frequency spectrum is formed from samples, there is nothing to guarantee that a sample will occur exactly at the top of a peak. More than likely, the nearest sample will be slightly off-center, giving a value lower than the true amplitude. The solution is to use a window that produces a spectral peak with a flat top, insuring that one or more of the samples will always have the correct peak value. As shown in Fig. 9-5d, the penalty for this is a very broad main lobe, resulting in poor frequency resolution.

As it turns out, the shape we want for a flat-top window is exactly the same shape as the filter kernel of a low-pass filter. We will discuss the theoretical reasons for this in later chapters; for now, here is a cookbook description of how the technique is used. Chapter 16 discusses a low-pass filter called the windowed-sinc. Equation 16-4 describes how to generate the filter kernel (which we want to use as a window), and Fig. 16-4a illustrates the typical shape of the curve. To use this equation, you will need to know the value of two parameters: M and fc . These are found from the relations: M ' N & 2 , and fc ' s /N , where N is the length of the DFT being used, and s is the number of samples you want on the flat portion of the peak (usually between 3 and 5). Table 16-1 shows a program for calculating the filter kernel (our window), including two subtle features: the normalization constant, K, and how to avoid a divide-by-zero error on the center sample. When using this method, remember that a DC value of one in the time domain will produce a peak of amplitude one in the frequency domain. However, a sinusoid of amplitude one in the time domain will only produce a spectral peak of amplitude one-half. (This is discussed in the last chapter: Synthesis, Calculating the Inverse DFT).

Frequency Response of Systems

Systems are analyzed in the time domain by using convolution. A similar analysis can be done in the frequency domain. Using the Fourier transform, every input signal can be represented as a group of cosine waves, each with a specified amplitude and phase shift. Likewise, the DFT can be used to represent every output signal in a similar form. This means that any linear system can be completely described by how it changes the amplitude and phase of cosine waves passing through it. This information is called the system's frequency response. Since both the impulse response and the frequency response contain complete information about the system, there must be a one- to-one correspondence between the two. Given one, you can calculate the other. The relationship between the impulse response and the frequency response is one of the foundations of signal processing: A system's frequency response is the Fourier Transform of its impulse response. Figure 9-6 illustrates these relationships.

Keeping with standard DSP notation, impulse responses use lower case variables, while the corresponding frequency responses are upper case. Since h[ ] is the common symbol for the impulse response, H[ ] is used for the frequency response. Systems are described in the time domain by convolution, that is:

178

The Scientist and Engineer's Guide to Digital Signal Processing

x[n] t h[n] ' y[n]. In the frequency domain, the input spectrum is multiplied by the frequency response, resulting in the output spectrum. As an equation: X [f ] × H [ f ] ' Y[ f ] . That is, convolution in the time domain corresponds to multiplication in the frequency domain.

Figure 9-7 shows an example of using the DFT to convert a system's impulse response into its frequency response. Figure (a) is the impulse response of the system. Looking at this curve isn't going to give you the slightest idea what the system does. Taking a 64 point DFT of this impulse response produces the frequency response of the system, shown in (b). Now the function of this system becomes obvious, it passes frequencies between 0.2 and 0.3, and rejects all others. It is a band-pass filter. The phase of the frequency response could also be examined; however, it is more difficult to interpret and less interesting. It will be discussed in upcoming chapters.

Figure (b) is very jagged due to the low number of samples defining the curve. This situation can be improved by padding the impulse response with zeros before taking the DFT. For example, adding zeros to make the impulse response 512 samples long, as shown in (c), results in the higher resolution frequency response shown in (d).

How much resolution can you obtain in the frequency response? The answer is: infinitely high, if you are willing to pad the impulse response with an infinite number of zeros. In other words, there is nothing limiting the frequency resolution except the length of the DFT. This leads to a very important concept. Even though the impulse response is a discrete signal, the corresponding frequency response is continuous. An N point DFT of the impulse response provides N/2 % 1 samples of this continuous curve. If you make the DFT longer, the resolution improves, and you obtain a better idea of

x[n] h[n] y[n]

TIME

IDFT

IDFT

IDFT

DOMAIN

 

 

 

FREQUENCY

DFT

DFT

DFT

DOMAIN

 

 

 

X[f] H[f] Y[f]

FIGURE 9-6

Comparing system operation in the time and frequency domains. In the time domain, an input signal is convolved with an impulse response, resulting in the output signal, that is, x[n] t h[n] ' y[n]. In the frequency domain, an input spectrum is multiplied by a frequency response, resulting in the output spectrum, that is, X[f] × H[f] ' Y[f]. The DFT and the Inverse DFT relate the signals in the two domain.

Chapter 9- Applications of the DFT

179

Time Domain

Frequency Domain

 

 

0.4

 

 

 

 

 

 

 

 

 

2.0

 

 

 

 

 

 

 

a. Impulse response

 

 

 

 

 

 

 

ab. ImpulseFrequencyresponse

 

 

 

Amplitude

0.2

 

 

 

 

 

 

 

 

Amplitude

1.5

 

 

 

 

 

0

 

 

 

 

 

 

 

 

1.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-0.2

 

 

 

 

 

 

 

 

 

0.5

 

 

 

 

 

 

-0.4

 

 

 

 

 

 

 

 

 

0.0

 

 

 

 

 

 

0

8

16

24

32

40

48

56

643

 

0

0.1

0.2

0.3

0.4

0.5

 

 

 

 

Sample number

 

 

 

 

 

 

Frequency

 

 

 

0.4

 

 

 

 

 

 

 

 

 

2.0

 

 

 

 

 

 

 

 

 

ac. Impulse response

padded with zeros

 

 

 

 

 

d. Frequency response (high resolution)

0.2

 

 

 

 

 

1.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Amplitude

0

Amplitude

1.0

 

 

-0.2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-0.4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

64

128

192

256

320

384

448

5112

0

0.1

0.2

0.3

0.4

0.5

 

 

 

 

 

 

 

 

 

Sample number

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Frequency

 

 

 

 

 

 

 

 

 

FIGURE 9-7

Finding the frequency response from the impulse response. By using the DFT, a system's impulse response, (a), can be transformed into the system's frequency response, (b). By padding the impulse response with zeros (c), higher resolution can be obtained in the frequency response, (d). Only the magnitude of the frequency response is shown in this example; discussion of the phase is postponed until the next chapter.

what the continuous curve looks like. Remember what the frequency response represents: amplitude and phase changes experienced by cosine waves as they pass through the system. Since the input signal can contain any frequency between 0 and 0.5, the system's frequency response must be a continuous curve over this range.

This can be better understood by bringing in another member of the Fourier transform family, the Discrete Time Fourier Transform (DTFT). Consider an N sample signal being run through an N point DFT, producing an N/2 % 1 sample frequency domain. Remember from the last chapter that the DFT considers the time domain signal to be infinitely long and periodic. That is, the N points are repeated over and over from negative to positive infinity. Now consider what happens when we start to pad the time domain signal with an ever increasing number of zeros, to obtain a finer and finer sampling in the frequency domain. Adding zeros makes the period of the time domain longer, while simultaneously making the frequency domain samples closer together.

180

The Scientist and Engineer's Guide to Digital Signal Processing

Now we will take this to the extreme, by adding an infinite number of zeros to the time domain signal. This produces a different situation in two respects. First, the time domain signal now has an infinitely long period. In other words, it has turned into an aperiodic signal. Second, the frequency domain has achieved an infinitesimally small spacing between samples. That is, it has become a continuous signal. This is the DTFT, the procedure that changes a discrete aperiodic signal in the time domain into a frequency domain that is a continuous curve. In mathematical terms, a system's frequency response is found by taking the DTFT of its impulse response. Since this cannot be done in a computer, the DFT is used to calculate a sampling of the true frequency response. This is the difference between what you do in a computer (the DFT) and what you do with mathematical equations (the DTFT).

Convolution via the Frequency Domain

Suppose that you despise convolution. What are you going to do if given an input signal and impulse response, and need to find the resulting output signal? Figure 9-8 provides an answer: transform the two signals into the frequency domain, multiply them, and then transform the result back into the time domain. This replaces one convolution with two DFTs, a multiplication, and an Inverse DFT. Even though the intermediate steps are very different, the output is identical to the standard convolution algorithm.

Does anyone hate convolution enough to go to this trouble? The answer is yes. Convolution is avoided for two reasons. First, convolution is mathematically difficult to deal with. For instance, suppose you are given a system's impulse response, and its output signal. How do you calculate what the input signal is? This is called deconvolution, and is virtually impossible to understand in the time domain. However, deconvolution can be carried out in the frequency domain as a simple division, the inverse operation of multiplication. The frequency domain becomes attractive whenever the complexity of the Fourier Transform is less than the complexity of the convolution. This isn't a matter of which you like better; it is a matter of which you hate less.

The second reason for avoiding convolution is computation speed. For example, suppose you design a digital filter with a kernel (impulse response) containing 512 samples. Using a 200 MHz personal computer with floating point numbers, each sample in the output signal requires about one millisecond to calculate, using the standard convolution algorithm. In other words, the throughput of the system is only about 1,000 samples per second. This is 40 times too slow for high-fidelity audio, and 10,000 times too slow for television quality video!

The standard convolution algorithm is slow because of the large number of multiplications and additions that must be calculated. Unfortunately, simply bringing the problem into the frequency domain via the DFT doesn't help at all. Just as many calculations are required to calculate the DFTs, as are required to directly calculate the convolution. A breakthrough was made in the problem in the early 1960s when the Fast Fourier Transform (FFT) was developed.

Chapter 9- Applications of the DFT

Amplitude

2

a. x[n]

1

0

-1

-2

0

128

256

384

5121

Sample number

t

Amplitude

2

d. h[n]

1

0

-1

0

128

256

384

5112

Sample number

=

 

 

 

 

 

181

 

30

 

 

 

 

 

20

g. y[n]

 

 

 

 

 

 

 

 

Amplitude

10

 

 

 

 

0

 

 

 

 

-10

 

 

 

 

 

 

 

 

 

 

-20

 

 

 

 

 

-30

 

 

 

 

 

0

128

256

384

5121

Sample number

 

 

 

DFT

 

TIME

 

 

 

DFT

 

 

 

 

 

IDFT

 

 

 

 

 

 

FREQUENCY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

60

 

 

 

 

 

60

 

 

 

 

 

2000

 

 

 

 

 

40

b. Re X[f]

 

 

 

40

e. Re H[f]

 

 

 

 

h. Re Y[f]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1000

 

 

 

 

Amplitude

20

 

 

 

 

Amplitude

20

 

 

 

 

Amplitude

 

 

 

 

 

0

 

 

 

 

0

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-20

 

 

 

 

 

-20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-1000

 

 

 

 

 

-40

 

 

 

 

 

-40

 

 

 

 

 

 

 

 

 

 

 

-60

 

 

 

 

 

-60

 

 

 

 

 

-2000

 

 

 

 

 

0

64

128

192

256

 

0

64

128

192

256

=

0

64

128

192

256

 

 

 

Frequency

 

x

 

 

 

Frequency

 

 

 

 

Frequency

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

60

 

 

 

 

 

60

 

 

 

 

 

2000

 

 

 

 

 

40

c. Im X[f]

 

 

 

40

f. Im H[f]

 

 

 

 

i. Im Y[f]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1000

 

 

 

 

Amplitude

20

 

 

 

 

Amplitude

20

 

 

 

 

Amplitude

 

 

 

 

 

0

 

 

 

 

0

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-20

 

 

 

 

 

-20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-1000

 

 

 

 

 

-40

 

 

 

 

 

-40

 

 

 

 

 

 

 

 

 

 

 

-60

 

 

 

 

 

-60

 

 

 

 

 

-2000

 

 

 

 

 

0

64

128

192

256

 

0

64

128

192

256

 

0

64

128

192

256

 

 

 

Frequency

 

 

 

 

 

Frequency

 

 

 

 

 

Frequency

 

 

FIGURE 9-8

Frequency domain convolution. In the time domain, x[n] is convolved with h[n] resulting in y[n] , as is shown in Figs. (a), (d), and (g). This same procedure to be accomplished in the frequency domain. The DFT is used to find the frequency spectrum of the input signal, (b) & (c), and the system's frequency response, (e) & (f). Multiplying these two frequency domain signals results in the frequency spectrum of the output signal, (h) & (i). The Inverse DFT is then used to find the output signal, (g).

The FFT is a clever algorithm for rapidly calculating the DFT. Using the FFT, convolution by multiplication in the frequency domain can be hundreds of times faster than conventional convolution. Problems that take hours of calculation time are reduced to only minutes. This is why people get excited about the FFT, and processing signals in the frequency domain. The FFT will be presented in

182 The Scientist and Engineer's Guide to Digital Signal Processing

Chapter 12, and the method of FFT convolution in Chapter 18. For now, focus on how signals are convolved by frequency domain multiplication.

To start, we need to define how to multiply one frequency domain signal by another, i.e., what it means to write: X [f ] × H [ f ] ' Y [f ] . In polar form, the magnitudes are multiplied: Mag Y[ f ] ' Mag X [f ] × MagH [f ] , and the phases are added: Phase Y[ f ] ' PhaseX [f ] % Phase H [ f ]. To understand this, imagine a cosine wave entering a system with some amplitude and phase. Likewise, the output signal is also a cosine wave with some amplitude and phase. The polar form of the frequency response directly describes how the two amplitudes are related and how the two phases are related.

When frequency domain multiplication is carried out in rectangular form there are cross terms between the real and imaginary parts. For example, a sine wave entering the system can produce both cosine and sine waves in the output. To multiply frequency domain signals in rectangular notation:

EQUATION 9-1 Multiplication of frequency domain signals in rectangular form: Y [ f ] ' X [ f ] × H [ f ].

Re Y [ f ] ' Re X [ f ] Re H [ f ] & Im X [ f ] Im H [ f ]

Im Y [ f ] ' Im X [ f ] Re H [ f ] % Re X [ f ] Im H [ f ]

Focus on understanding multiplication using polar notation, and the idea of cosine waves passing through the system. Then simply accept that these more elaborate equations result when the same operations are carried out in rectangular form. For instance, let's look at the division of one frequency domain signal by another. In polar form, the division of frequency domain signals is achieved by the inverse operations we used for multiplication. To calculate: H [f ] ' Y [f ] / X [f ] , divide the magnitudes and subtract the phases, i.e., Mag H [ f ] ' Mag Y [f ] / MagX [f ] , Phase H [ f ] ' PhaseY [f ] & Phase X[ f ]. In rectangular form this becomes:

EQUATION 9-2

Division of frequency domain signals in rectangular form, where: H [ f ] ' Y[ f ] / X [ f ].

Re H [ f ] '

Re Y [ f ] Re X [ f ] % Im Y [ f ] Im X [ f ]

Re X [ f ]2

% Im X [ f ]2

 

Im H [ f ] '

Im Y [ f ] Re X [ f ] & Re Y [ f ] Im X [ f ]

Re X [ f ]2

% Im X [ f ]2

 

Now back to frequency domain convolution. You may have noticed that we cheated slightly in Fig. 9-8. Remember, the convolution of an N point signal with an M point impulse response results in an N% M& 1 point output signal. We cheated by making the last part of the input signal all zeros to allow this expansion to occur. Specifically, (a) contains 453 nonzero samples, and (b) contains 60 nonzero samples. This means the convolution of the two, shown in (c), can fit comfortably in the 512 points provided.

 

 

 

 

 

 

Chapter 9- Applications of the DFT

 

 

 

 

 

 

183

 

2

 

 

 

 

 

2

 

 

 

 

 

20

 

 

 

 

 

 

 

a. Input signal

 

 

 

 

b. Impulse response

 

 

15

c. Convolution of (a) and (b)

 

Amplitude

1

 

 

 

 

Amplitude

1

 

 

 

 

Amplitude

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

=

5

 

 

 

 

 

 

 

 

 

 

 

t 0

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-5

 

 

 

 

 

 

-1

 

 

 

 

 

-1

 

 

 

 

 

-10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-15

 

 

 

 

 

 

-2

 

 

 

 

 

-2

 

 

 

 

 

-20

 

 

 

 

 

 

0

64

128

192

2565

 

0

64

128

192

2565

 

0

64

128

192

2565

305

Sample number

Sample number

Sample number

 

20

 

 

 

 

15

d. Overlap of adjecent periods

 

 

 

10

 

 

 

Amplitude

5

 

 

 

0

 

 

 

-5

 

 

 

 

-10

 

 

 

 

-15

 

 

 

 

-20

 

 

 

 

0

256

512

7678

Sample number

 

20

 

 

 

 

 

15

e. Circular convolution

 

 

10

 

 

 

 

Amplitude

5

 

 

 

 

0

 

 

 

 

-5

overlap

 

 

 

-10

 

 

 

 

 

 

 

 

-15

 

 

 

 

 

-20

 

 

 

 

 

0

64

128

192

2556

Sample number

FIGURE 9-9

Circular convolution. A 256 sample signal, (a), convolved with a 51 sample impulse response, (b), results in a 306 sample signal, (c). If this convolution is performed in the frequency domain using 256 point DFTs, the 306 points in the correct convolution cannot fit into the 256 samples provided. As shown in (d), samples 256 through 305 of the output signal are pushed into the next period to the right, where they add to the beginning of the next period's signal. Figure (e) is a single period of the resulting signal.

Now consider the more general case in Fig. 9-9. The input signal, (a), is 256 points long, while the impulse response, (b), contains 51 nonzero points. This makes the convolution of the two signals 306 samples long, as shown in (c). The problem is, if we use frequency domain multiplication to perform the convolution, there are only 256 samples allowed in the output signal. In other words, 256 point DFTs are used to move (a) and (b) into the frequency

184

The Scientist and Engineer's Guide to Digital Signal Processing

domain. After the multiplication, a 256 point Inverse DFT is used to find the output signal. How do you squeeze 306 values of the correct signal into the 256 points provided by the frequency domain algorithm? The answer is, you can't! The 256 points end up being a distorted version of the correct signal. This process is called circular convolution. It is important because you want to avoid it.

To understand circular convolution, remember that an N point DFT views the time domain as being an infinitely long periodic signal, with N samples per period. Figure (d) shows three periods of how the DFT views the output signal in this example. Since N ' 256 , each period consists of 256 points: 0-255, 256-511, and 512-767. Frequency domain convolution tries to place the 306 point correct output signal, shown in (c), into each of these 256 point periods. This results in 49 of the samples being pushed into the neighboring period to the right, where they overlap with the samples that are legitimately there. These overlapping sections add, resulting in each of the periods appearing as shown in (e), the circular convolution.

Once the nature of circular convolution is understood, it is quite easy to avoid. Simply pad each of the signals being convolved with enough zerosto allow the output signal room to handle the N% M& 1 points in the correct convolution. For example, the signals in (a) and (b) could be padded with zeros to make them 512 points long, allowing the use of 512 point DFTs. After the frequency domain convolution, the output signal would consist of 306 nonzero samples, plus 206 samples with a value of zero. Chapter 18 explains this procedure in detail.

Why is it called circular convolution? Look back at Fig. 9-9d and examine the center period, samples 256 to 511. Since all of the periods are the same, the portion of the signal that flows out of this period to the right, is the same that flows into this period from the left. If you only consider a single period, such as in (e), it appears that the right side of the signal is somehow connected to the left side. Imagine a snake biting its own tail; sample 255 is located next to sample 0, just as sample 100 is located next to sample 101. When a portion of the signal exits to the right, it magically reappears on the left. In other words, the N point time domain behaves as if it were circular.

In the last chapter we posed the question: does it really matter if the DFT's time domain is viewed as being N points, rather than an infinitely long periodic signal of period N? Circular convolution is an example where it does matter. If the time domain signal is understood to be periodic, the distortion encountered in circular convolution can be simply explained as the signal expanding from one period to the next. In comparison, a rather bizarre conclusion is reached if only N points of the time domain are considered. That is, frequency domain convolution acts as if the time domain is somehow wrapping into a circular ring with sample 0 being positioned next to sample N-1.

CHAPTER

Fourier Transform Properties

10

The time and frequency domains are alternative ways of representing signals. The Fourier transform is the mathematical relationship between these two representations. If a signal is modified in one domain, it will also be changed in the other domain, although usually not in the same way. For example, it was shown in the last chapter that convolving time domain signals results in their frequency spectra being multiplied. Other mathematical operations, such as addition, scaling and shifting, also have a matching operation in the opposite domain. These relationships are called properties of the Fourier Transform, how a mathematical change in one domain results in a mathematical change in the other domain.

Linearity of the Fourier Transform

The Fourier Transform is linear, that is, it possesses the properties of homogeneity and additivity. This is true for all four members of the Fourier transform family (Fourier transform, Fourier Series, DFT, and DTFT).

Figure 10-1 provides an example of how homogeneity is a property of the Fourier transform. Figure (a) shows an arbitrary time domain signal, with the corresponding frequency spectrum shown in (b). We will call these two signals: x[ ] and X[ ] , respectively. Homogeneity means that a change in amplitude in one domain produces an identical change in amplitude in the other domain. This should make intuitive sense: when the amplitude of a time domain waveform is changed, the amplitude of the sine and cosine waves making up that waveform must also change by an equal amount.

In mathematical form, if x[ ] and X [ ] are a Fourier Transform pair, then k x[ ] and k X[ ] are also a Fourier Transform pair, for any constant k. If the frequency domain is represented in rectangular notation, k X[ ] means that both the real part and the imaginary part are multiplied by k. If the frequency domain is represented in polar notation, k X[ ] means that the magnitude is multiplied by k, while the phase remains unchanged.

185

186

The Scientist and Engineer's Guide to Digital Signal Processing

 

 

Time Domain

 

 

 

3

 

 

 

 

 

a.

x[ ]

 

 

 

 

2

 

 

 

 

Amplitude

1

 

 

 

 

0

 

 

 

F.T.

 

 

 

 

 

 

 

 

 

 

-1

 

 

 

 

 

-2

 

 

 

 

 

-3

 

 

 

 

 

0

64

128

192

2556

 

 

 

Sample number

 

 

 

3

 

 

 

 

 

c.

k x[ ]

 

 

 

 

2

 

 

 

 

Amplitude

1

 

 

 

 

0

 

 

 

F.T.

 

 

 

 

 

 

 

 

 

 

-1

 

 

 

 

 

-2

 

 

 

 

 

-3

 

 

 

 

 

0

64

128

192

2556

Sample number

 

Frequency Domain

 

50

 

 

 

 

 

 

b. X[ ]

 

 

 

 

40

 

 

 

 

 

Amplitude

 

 

 

 

 

30

 

 

 

 

 

20

 

 

 

 

 

10

 

 

 

 

 

0

 

 

 

 

 

0

0.1

0.2

0.3

0.4

0.5

 

 

Frequency

 

 

50

 

 

 

 

 

 

d. k X[ ]

 

 

 

 

40

Amplitude

 

 

 

 

 

30

 

 

 

 

 

20

 

 

 

 

 

10

 

 

 

 

 

0

 

 

 

 

 

0

0.1

0.2

0.3

0.4

0.5

Frequency

FIGURE 10-1

Homogeneity of the Fourier transform. If the amplitude is changed in one domain, it is changed by the same amount in the other domain. In other words, scaling in one domain corresponds to scaling in the other domain.

Additivity of the Fourier transform means that addition in one domain corresponds to addition in the other domain. An example of this is shown in Fig. 10-2. In this illustration, (a) and (b) are signals in the time domain called x1[ ] and x2[ ], respectively. Adding these signals produces a third time domain signal called x3[ ], shown in (c). Each of these three signals has a frequency spectrum consisting of a real and an imaginary part, shown in (d) through (i). Since the two time domain signals add to produce the third time domain signal, the two corresponding spectra add to produce the third spectrum. Frequency spectra are added in rectangular notation by adding the real parts to the real parts and the imaginary parts to the

imaginary parts. If: x1[n] % x2[n] ' x3[n] , then: Re X1[f ] % ReX2[ f ] ' ReX3[ f ] and Im X1[f ] % ImX2[ f ] ' Im X3[f ]. Think of this in terms of cosine and sine

waves. All the cosine waves add (the real parts) and all the sine waves add (the imaginary parts) with no interaction between the two.

Frequency spectra in polar form cannot be directly added; they must be converted into rectangular notation, added, and then reconverted back to

Соседние файлы в предмете Электроника