Asp Unit 1
Asp Unit 1
Asp Unit 1
Syllabus
Module I
Review of Discrete Time Signals and Systems: Frequency analysis of discrete time linear time invariant systems. Discrete time
systems, analysis of discrete time linear invariant systems, implementation of discrete time systems, correlation of discrete time
systems, z-transforms, linear time invariant systems as frequency selective filters, sampling, DFT, properties and applications of
DFT.
Module II
Multirate Digital Signal Processing: Decimation, interpolation, sampling rate conversion, filter design and implementation for
multirate conversion, sampling rate conversion by an arbitrary factor, applications of multirate signal processing.
Module III
Linear Prediction and Optimum Linear Filters: Forward and backward linear prediction, solution of the normal equations, wiener
filters.
Module IV
Power Spectrum Estimation: Non-parametric and parametric methods for power spectrum estimation.
Text Books:
1. John G. Proakis, Digital Signal Processing Principles, Algorithms, and Applications, Prentice-Hall International. Inc, 4th Edition,
2012.
2. Lawrence R.Rabiner and Bernard Gold, Theory and Application of Digital Signal Processing, PHI.
Reference Books:
1. Oppenheim, Alan V. Discrete-time signal processing. Pearson Education India, 1999.
2. Mitra, Sanjit Kumar, and Yonghong Kuo. Digital signal processing: a computer-based approach. vol.2. New York: McGraw-Hill
Higher Education, 2006.
Module I
Review of Discrete Time Signals and Systems:
➢ Frequency analysis of discrete time linear time invariant systems,
➢ Discrete time systems,
➢ Analysis of discrete time linear invariant systems,
➢ Implementation of discrete time systems,
➢ Correlation of discrete time systems,
➢ Z-transforms,
➢ Linear time invariant systems as frequency selective filters,
➢ Sampling,
➢ DFT,
➢ Properties and applications of DFT.
Introduction
Signals
➢ Definition Anything that carries information can be called as signal.
➢ It can also be defined as a physical quantity that varies with time, temperature, pressure or with any
independent variables such as speech signal or video signal.
➢ The process of operation in which the characteristics of a signal (Amplitude, shape, phase, frequency, etc.)
undergoes a change is known as signal processing.
➢ Note − Any unwanted signal interfering with the main signal is termed as noise. So, noise is also a signal
but unwanted.
➢ Ex: Audio, video, speech, Image.
Discrete Time signals
➢ The signals which are defined at discrete times are known as discrete signals.
➢ Every independent variable has distinct value. Thus, they are represented as sequence of numbers.
➢ Although speech and video signals have the advantage to be represented in both continuous and discrete
time format; under certain circumstances, they are identical.
➢ Amplitudes also show discrete characteristics. Perfect example of this is a digital signal; whose amplitude
and time both are discrete.
Conti..
➢ Discrete amplitude characteristic over a period of time. Mathematically, these types of signals can be
formularized as
x={x[n]} −∞<n<∞.
➢ Where, n is an integer. It is a sequence of numbers x, where nth number in the sequence is represented as x[n].
Basic DT Signals
Let us see how the basic signals can be represented in Discrete Time Domain.
a) Unit Impulse Sequence
➢ It is denoted as δ(n) in discrete time domain and can be defined as
δ(n)= 1 ; n=0
δ(n)=0 ;n≠ 0
➢ Here A,ω and φ have their usual meaning and n is the integer. Time period of the discrete sinusoidal signal
is given by
➢ Here, we can see that x(-1) = x(1), x(-2) = x(2) and x(-n) = x(n). Thus, it is an even signal.
Odd Signal
➢ A signal is said to be odd if it satisfies the following condition;
x(-n) = −x(n)
➢ From the figure, we can see that x(1) = -x(-1), x(2) = -x(2) and x(n) = -x(-n). Hence, it is an odd as well as anti-
symmetric signal.
Conti…
2) Periodic and Non-Periodic Signals
➢ A discrete time signal is periodic if and only if, it satisfies the following condition
x(n+N)=x(n)
➢ Here, x(n) signal repeats itself after N period. This can be best understood by considering a cosine signal
x(n)=Acos(2πf0n+θ) x(n+N)=Acos(2πf0(n+N)+θ)=Acos(2πf0n+2πf0N+θ)
➢ For the signal to become periodic, following condition should be satisfied;
x(n+N)=x(n)
⇒Acos(2πf0n+2πf0N+θ)=Acos(2πf0n+θ)
i.e. 2πf0N is an integral multiple of 2π
2πf0N=2πK
N=K/f0
➢ Frequencies of discrete sinusoidal signals are separated by integral multiple of 2π.
3) Energy and Power Signals
Energy Signal
➢ Energy of a discrete time signal is denoted as E. Mathematically, it can be written as;
➢ If each individual values of x(n) are squared and added, we get the energy signal. Here x(n) is the energy signal and its
energy is finite over time i.e 0<E<∞
Power Signal
➢ Average power of a discrete signal is represented as P. Mathematically, this can be written as;
➢ Here, power is finite i.e. 0<P<∞. However, there are some signals, which belong to neither energy nor power type signal.
Conti…
Operations on Signals
➢ The basic signal operations which manipulate the signal characteristics by acting on the independent variable(s)
which are used to represent them. This means that instead of performing operations like addition, subtraction, and
multiplication between signals, we will perform them on the independent variable. In our case, this variable is
time (t).
1. Time Shifting
➢ Suppose that we have a signal x(n) and we define a new signal by adding/subtracting a finite time value to/from
it. We now have a new signal, y(n). The mathematical expression for this would be x(n± n0).
➢ However, note that while doing so, none of its characteristics are altered. This means that the time-shifting
operation results in the change of just the positioning of the signal without affecting its amplitude or span.
Figure no.1
Conti..
Time-Delayed Signals
➢ Suppose that we want to move this signal right by three units (i.e., we want a new signal whose amplitudes are the
same but are shifted right three times).
➢ This means that we desire our output signal y[n] to span from n = 0 to n = 6. Such a signal is shown as Figure 1(b)
and can be mathematically written as y[n] = x[n-3].
➢ This kind of signal is referred to as time-delayed because we have made the signal arrive three units late.
Time-Advanced Signals
➢ On the other hand, let's say that we want the same signal to arrive early. Consider a case where we want our output
signal to be advanced by, say, two units. This objective can be accomplished by shifting the signal to the left by two
time units, i.e., y[n] = x[n+2].
➢ The corresponding input and output signals are shown in Figure 2(a) and 2(b), respectively. Our output signal has
the same values as the original signal but spans from n = -5 to n = 1 instead of n = -3 to n = 3. The signal shown in
Figure 2(b) is aptly referred to as a time-advanced signal.
Figure no. 2
Conti..
➢ For both of the above examples, note that the time-shifting operation performed over the signals affects not the
amplitudes themselves but rather the amplitudes with respect to the time axis. We have used discrete-time signals
in these examples, but the same applies to continuous- time signals.
2. Time Scaling
➢ Now that we understand more about performing addition and subtraction on the independent variable
representing the signal, we'll move on to multiplication.
➢ For this, let's consider our input signal to be a continuous-time signal x(t) as shown by the red curve in Figure 3.
➢ Now suppose that we multiply the independent variable (t) by a number greater than one. That is, let's make t in
the signal into, say, 2t. The resultant signal will be the one shown by the blue curve in Figure 3.
➢ From the figure, it's clear that the time-scaled signal is contracted with respect to the original one. For example,
we can see that the value of the original signal present at t = -3 is present at t = -1.5 and those at t= -2 and at t = -1
are found at t = -1 and at t = -0.5 (shown by green dotted-line curved arrows in the figure).
➢ This means that, if we multiply the time variable by a factor of 2, then we will get our output signal contracted by
a factor of 2 along the time axis. Thus, it can be concluded that the multiplication of the signal by a factor of n
leads to the compression of the signal by an equivalent factor.
Figure no 3
Conti…
Let's check it out.
• For this, let's consider our signal to be the same as the one in Figure 3 (the red curve in the figure). Now let's
multiply its time-variable t by ½ instead of 2. The resultant signal is shown by the blue curve in Figure 3(b). You
can see that, in this time-scaled signal indicated by the green dotted-line arrows in Figure 3(b), we have the values
of the original signal present at the time instants t = 1, 2, and 3 to be found at t = 2, 4, and 6.
• This means that our time-scaled signal is a stretched-by-a-factor-of-n version of the original signal. So the answer
to the question posed above is "yes.“
3. Time Reversal
➢ Until now, we have assumed our independent variable representing the signal to be positive. Why should this be the
case? Can't it be negative?
➢ It can be negative. In fact, one can make it negative just by multiplying it by -1.
➢ For example, let's consider our input signal to be x[n], shown in Figure 4(a). The effect of substituting –n in the
place of n results in the signal y[n] as shown in Figure 4(b).
(a)
(b)
FIGURE 3.1 Analog frequency response and (b) digital frequency response
Discrete time system
Definition of Discrete time system
➢ A system is defined mathematically as a unique operator or transformation that maps an input signal in to an
output signal.
➢ This is defined as y(n) = T[x(n)] where x(n) is input signal, y(n) is output signal, T[] is transformation that
characterizes the system behavior.
y(n) = T [x(n)] or
➢ Unit-delay element: This element delays the signal by one sample i.e. the response of the system is the
excitation of previous sample.
➢ This can element is said to have a memory which stores the excitation at time n-1 and recalls this excitation at the
time n form the memory. This element is represented as,
➢ Unit-advance element: This element advances the signal by one sample i.e. the response of the current
excitation is the excitation of future sample.
➢ Although, as we can see this element is not physically realizable unless the response and the excitation are already
in stored or recorded form.
Conti..
➢ Now that we have understood the basic elements of the Discrete-time systems we can now represent any
discrete-time system with the help of block diagram. For example,
y(n) = y(n-1) + x (n-1) + 2x(n)
3. Time-variant and Time-invariant system: A discrete-time system is said to be time invariant if the input-
output characteristics do not change with time.
➢ If the excitation is delayed by k units then the response of the system is also delayed by k units.
➢ Let there be a system,
x(n) ----> y(n) ∀x(n)
Then the relaxed system T is time-invariant if and only if,
x(n-k) ----> y(n-k) ∀x(n) and k.
➢
Conti…
Otherwise, the system is said to be time-variant system if it does not follows the above specified set of rules.
➢ For example,
y(n) = ax(n) { time-invariant }
y(n) = x(n) + x(n-3) { time-invariant }
y(n) = nx(n) { time-variant }
y(n) = x(-n)
L.H.S. = y(n-k) = x[-(n-k)]=x(-n+k)
R.H.S. = T[x(n-k)] = x(-n-k)
Thus, R.H.S. is not equal to L.H.S. so the system is time-variant.
4. Linear and non-Linear systems: A system is said to be a linear system if it follows the superposition principle
i.e. the sum of responses (output) of weighted individual excitations (input) is equal to the response of sum of the
weighted excitations.
➢ In Linear System,
If, y1(n) = T[ ax1(n) ]
y2(n) = T[ bx2(n) ]
and, y(n) = T[ax1(n) + bx2(n)] Then, the system is said to be linear if ,
T[ ax1(n) + bx2(n)] = T[ ax1(n) ] + T[ bx2(n) ]
5. Causal and non-Causal systems: A discrete-time system is said to be a causal system if the response or the
output of the system at any time depends only on the present or past excitation or input and not on the future
inputs.
➢ If the system T follows the following relation then the system is said to be causal otherwise it is a non-causal
system.
y(n) = F [x(n), x(n-1), x(n-2),…….]
Where F[] is any arbitrary function.
➢ A non-causal system has its response dependent on future inputs also which is not physically realizable in a real-
time system but can be realized in a recorded system. For example,
Conti..
6. Stable and Unstable systems: A system is said to be stable if the bounded input produces a bounded output
i.e. the system is BIBO stable. If,
➢ Then the system is said to be bounded system and if this is not the case then the system is unbounded or unstable.
ANALYSIS OF DISCRETE-TIME LINEAR TIME-
INVARIANT SYSTEMS
➢ The general form of the expression that relates the unit sample response of the system and the arbitrary input
signal to the output signal, called the convolution sum.
➢ Thus we are able to determine the output of any linear, time-invariant system to any arbitrary input signal.
➢ There are two basic methods for analyzing the behavior or response of a linear system to a given input
signal.
➢ The first method for analyzing the behavior of a linear system to a given input signal is first to decompose or
resolve the input signal into a sum of elementary signals.
➢ The elementary signals are selected so that the response of the system to each signal component is easily
determined.
➢ Then, using the linearity property of the system, the responses of the system to the elementary signals are
added to obtain the total response of the system to the given input signal.
➢ Suppose that the input signal x( n ) is resolved into a weighted sum of elementary signal components { xk( n )
) so that
Example
1. Consider the special case of a finite-duration sequence given as
Solution:
Since the sequence x ( n ) is non zero for the time instants n = -1, 0. 2, we need three impulses at delays k = - 1. 0, 2.
we find that
➢ n is the time index and k is a parameter showing the location of the input impulse.
Conti…
➢ If the impulse at the input is scaled by an amount ck = x(k ) the response of the system is the correspondingly
scaled output, that is,
➢ Finally, if the input is the arbitrary signal x(n) that is expressed as a sum of weighted impulses. that is,
➢ Then the response of the system to x(n) is the corresponding sum of weighted outputs, that is.
➢ The above equation follows from the superposition property of linear systems, and is known as the superposition
summation.
➢ In the above equation we used the linearity property of the system but nor its time invariance property.
➢ Then by the time-invariance property, the response of the system to the delayed unit sample sequence δ(n - k ) is
➢ The formula above gives the response y(n) of the LTI system as a function a convolution sum.
Conti…
The process of computing the convolution between x( k ) and h(k) involves the following four
steps.
1. Folding. Fold h(k) about k = 0 to obtain h (- k).
2. Shifting. Shift h (- k) by no to the right (left) if no is positive (negative), to obtain h(no - k ) .
3. Multiplication. Multiply x( k ) by h(no - k) to obtain the product sequence
vno(k) = x(k)h(no - k).
4. Summation. Sum all the values of the product sequence vno(k) to obtain the value of the output
at time n = no.
Conti…
Example .
1. The impulse response of a linear time-invariant system is
➢ which is realized as in Fig. above, This realization uses separate delays (memory) for both the input and output
signal samples and it is called a direct form I structure.
➢ Note that this system can be viewed as two linear time-invariant systems in cascade.
➢ The first is a non recursive, system described by the equation
Conti..
➢ Whereas the second is a recursive system described by the equation
➢ Thus if we interchange the order of the recursive and non recursive systems, we obtain an alternative structure for
the realization of the system described above.
➢ The resulting system is shown in Fig. b From this figure below we obtain the two difference equations
Conti…
➢ A close observation of Fig. a, b reveals that the two delay elements contain the same input w(n) and hence
the same output w(n-1).
➢ Consequently. These two elements can be merged into one delay, as shown in Fig. c.
➢ In contrast to the direct form I structure, this new realization requires only one delay for the auxiliary
quantity w(n), and hence it is more efficient in terms of memory requirements.
➢ It is called the direct form II structure and it is used extensively in practical applications.
➢ These structures can readily be generalized for the general linear time-invariant recursive system described
by the difference equation
➢ Figure below illustrates the direct form I structure for this system. This structure requires M + N delays and
N + M + 1 multiplications. It can be viewed as the cascade of a non recursive system