• Tidak ada hasil yang ditemukan

Conversion of Continuous Signals and Systems to Discrete Time

Dalam dokumen Discrete-Time Speech Signal Processing (Halaman 64-68)

BIBLIOGRAPHY

2.11 Conversion of Continuous Signals and Systems to Discrete Time

2.11.1 Sampling Theorem

We began this review by sampling a continuous-time speech waveform to generate a discrete-time sequence, i.e.,x[n]=xa(t )|t=nT, whereT is the sampling interval. An implicit assumption was that the sampling is fast enough so that we can recoverxa(t ) fromx[n]. The condition under which recovery is possible is called theSampling Theorem.

Sampling Theorem: Suppose thatxa(t ) is sampled at a rate of Fs = T1 samples per second and supposexa(t ) is a bandlimited signal, i.e., its continuous-time Fourier transformXa()is such thatXa()=0 for|| ≥N =2π FN. Thenxa(t )can be uniquely determined from its uniformly spaced samplesx[n]=xa(nT )if the sampling frequencyFs is greater than twice the largest frequency of the signal, i.e., Fs >2FN. The largest frequency in the signalFN is called theNyquist frequency, and 2FN, which must be attained in sampling for reconstruction, is called theNyquist rate.

For example, in speech we might assume a 5000 Hz bandwidth. Therefore, for signal recovery we must sample at T1 = 10000 samples/s corresponding to aT =100μs sampling interval.

The basis for the Sampling Theorem is that samplingxa(t )at a rate ofT1 results in spectral duplicates spaced by T2, so that sampling at the Nyquist rate avoids aliasing, thus preserving the spectral integrity of the signal. The sampling can be performed with a periodic impulse train with spacingT and unity weights, i.e.,p(t ) =

k=−∞δ(tkT ). The impulse train resulting from multiplication with the signalxa(t ), denoted byxp(t ), has weights equal to the signal values evaluated at the sampling rate, i.e.,

xp(t ) = xa(t )p(t )

=

k=−∞

xa(kT )δ(tkT ). (2.33) The impulse weights are values of the discrete-time signal, i.e.,x[n]=xa(nT ), and therefore, as illustrated in Figure 2.11, the cascade of sampling with the impulse trainp(t )followed by con- version of the resulting impulse weights to a sequence is thought of as an ideal A/D converter (or C/D converter). In the frequency domain, the impulse trainp(t )maps to another impulse train with spacing 2π Fs, i.e., the Fourier transform ofp(t )isP ()= 2Tπ

k=−∞δ(ks) wheres = 2π Fs. Using the continuous-time version of the Windowing Theorem, it fol-

Discrete- Time System

Sequence to Impulse

Train yp(t) xp(t)

xa(t) x[n] y[n]

Sampling

ya(t) Impulse Train

to Sequence

p(t) =∑δ(t–kT) k = –

C/D

D/C

×

Ωs

ΩN ΩN ΩN ΩN

2 Ωs

2 sin(x)/x Interpolation

2π T

ΩN

2π T 2π

T

ΩN2π T

ΩN ΩN Ω Ω ω Ω

ω Ω

π π

–2π 2π

π π

–2π 2π

Figure 2.11 Path from sampling to reconstruction (2N =s).

lows thatP ()convolves with the Fourier transform of the signalxa(t ), thus resulting in a continuous-time Fourier transform with spectral duplicates

Xp() = 1 T

k=−∞

Xa(ks) (2.34)

wheres =2π Fs. Therefore, the original continuous-time signalxa(t )can be recovered by applying a lowpass analog filter, unity in the passband

2s,s

2

, and zero outside this band.

This perspective also leads to a reconstruction formula which interpolatesthe signal samples with a sin function. Using the continuous-time version of the Convolution Theorem, application of an ideal lowpass filter of widths corresponds to the convolution of the filter impulse response with the signal-weighted impulse trainxp(t ). Thus, we have a reconstruction formula given by

xa(t ) =

n=−∞

xa(nT )sin(π(tnT )/T ) π(tnT )/T

because the function sinπ(t(π(tnT )/TnT )/T ) is the inverse Fourier transform of the ideal lowpass filter.

As illustrated in Figure 2.11, the cascade of the conversion of the sequencey[n]=x[n] to a continuous-time impulse train (with weightsxa(nT )) followed by lowpass filtering is thought of as adiscrete-to-continuous (D/C) converter. In practice, however, adigital-to-analog converter is used. Unlike the D/C converter, because of quantization error and other forms of distortion, D/A converters do not achieve perfect reconstruction.

2.11 Conversion of Continuous Signals and Systems to Discrete Time 45

The relation between the Fourier transform ofxa(t ),Xa(), and the discrete-time Fourier transform ofx[n]=xa(nT ),X(ω), can now be deduced. When the Sampling Theorem holds, over the frequency interval [−π, π] X(ω) is a frequency-scaled (or frequency-normalized) version ofXa(). Specifically, over the interval [−π, π] we have

X(ω) = 1 TXa

ω

T

, |ω| ≤ π.

This relation can be obtained by first observing thatXp()can be written as

Xp() =

n=−∞

xa(nT )ej T n (2.35)

and then by applying the continuous-time Fourier transform to Equation (2.33), and comparing this result with the expression for the discrete-time Fourier transform in Equation (2.2) [7]. We see that if the sampling is performed exactly at the Nyquist rate, then the normalized frequency π corresponds to the highest frequency in the signal. For example, whenFN = 5000 Hz, then π corresponds to 5000 Hz.

The entire path, including sampling, application of a discrete-time system, and recon- struction, as well as the frequency relation between signals, is illustrated in Figure 2.11. In this illustration, the sampling frequency equals the Nyquist rate, i.e., 2N =s. The discrete-time system shown in the figure may be, for example, a digital filter which has been designed in discrete time or derived from sampling an analog filter with some desired properties.

A topic related to the Sampling Theorem is the decrease and increase of the sampling rate, referred to asdecimationandinterpolationor, alternatively, asdownsamplingandupsampling, respectively. Changing the sampling rate can be important in speech processing where one parameter may be deemed to be slowly-varying relative to another; for example, the state of the vocal tract may vary more slowly, and thus have a smaller bandwidth, than the state of the vocal cords. Therefore, different sampling rates may be applied in their estimation, requiring a change in sampling rate in waveform reconstruction. For example, although the speech waveform is sampled at, say, 10000 samples/s, the vocal cord parameters may be sampled at 100 times/s, while the vocal tract parameters are sampled at 50 times/s. The reader should briefly review one of the numerous tutorials on decimation and interpolation [3],[7],[10].

2.11.2 Sampling a System Response

In the previous section, we sampled a continuous-time waveform to obtain discrete-time samples for processing by a digital computer or other discrete-time-based system. We will also have occasion to transform analog systems to discrete-time systems, as, for example, in sampling a continuous-time representation of the vocal tract impulse response, or in the replication of the spectral shape of an analog filter. One approach to this transformation is to simply sample the continuous-time impulse response of the analog system; i.e., we perform the continuous-to- discrete-time mapping

h[n] = ha(nT )

whereha(t )is the analog system impulse response andT is the sampling interval. This method of discrete-time filter design is referred to as theimpulse invariancemethod [7].

Similar to sampling of continuous-time waveforms, the discrete-time Fourier transform of the sequenceh[n],H (ω), is related to the continuous-time Fourier transform ofha(t ),Ha(), by the relation

H (ω) = 1 THa

ω

T

, |ω| ≤ π

where we assume ha(t ) is bandlimited and the sampling rate is such to satisfy the Nyquist criterion [7]. The frequency response of the analog signal is therefore preserved. It is also of interest to determine how poles and zeros are transformed in going from the continuous- to the discrete-time filter domains as, for example, in transforming a continuous-time vocal tract impulse response. To obtain a flavor for this style of conversion, consider the continuous-time rendition of the IIR filter in Equation (2.25), i.e.,

ha(t ) =

N

k=1

Akesktu(t )

whose Laplace transform is given in partial fraction expansion form (the continuous counterpart to Equation (2.18)) [7]

Ha(s) =

N

k=1

Ak ssk.

Then the impulse invariance method results in the discrete-time impulse response

h[n] = ha[nT] =

N

k=1

Ake(skT )nu[n] whosez-transform is given by

H (z) =

N

k=1

Ak 1−e(skT )z1

with poles atz=e(skT )inside the unity circle in thez-plane (|e(skT )| =e(Re[sk]T )<1 when Re[sk] < 0) is mapped from poles in thes-plane froms = sk located to the left of thej axis. Poles being to the left of thej axis is a stability condition for causal continuous systems.

Although the poles are mapped inside the unit circle, the mapping of the zeros depends on both the resulting poles and the coefficientsAk in the partial fraction expansion. It is conceivable, therefore, that a minimum-phase response may be mapped to a mixed-phase response with zeros outside the unit circle, a consideration that can be particularly important in modeling the vocal tract impulse response.

Dalam dokumen Discrete-Time Speech Signal Processing (Halaman 64-68)