How Fast Should a Signal Be Sampled to Go Back to Its Continuous

In my previous tutorial, I gave a brief idea about the fundamentals of digital signal processing. Now we are going to take a step further in this direction. To do the processing part we first need to understand discrete-time signals, classification and their operations. In this tutorial major emphasis will be given on Discrete-time signals and discrete-time systems.

What we are going to learn in this tutorial :-

     Ø Sampling

{       Ø Discrete-time Signals

{C}{     Ø Classification of Discrete-time signals

     Ø Transformation of Discrete-time signals

Sampling

      First we need to understand what is a Sampling process? Why do we need sampling? The answer to the first question is that Sampling is a process of breakage of continuous signal to discrete signal. In a layman definition the output of system is recorded at different intervals of time, these intervals of time may not necessarily be uniform but in this series of tutorials we will limit our discussion to only Uniform-Sampling.

Graph showing uniform sampling

Fig. 1: Graph showing Uniform Sampling

      In the above picture shown the continuous signal S(t) is being sampled at different moments of time, let the ith value be Si(t) then the set of values of Si(t) from i=0 to n are called the samples of S(t). Time interval between two consecutive sampling intervals is called Sampling period or Sample interval.  If the time interval between two consecutive sampling intervals is uniform and equals to T,

      fs= 1/T , where fs is the sampling frequency.

Discrete-time Sinusoids :-

     Discrete-time sinusoids are a very important type of signal which is to be studied under Digital Signal Processing. So, since now we have a brief idea about sampling, we will be discussing about those signals and then we will get to the Sampling Theorem. A discrete-time sinusoidal signal may be expressed as,

      x(n)= Acos(?0n + Ø) , -?  < n < +?

      Where n is an integer, ?0 is the angular frequency and is also equal to 2?f0, where f0 is the frequency and Ø is the phase of the signal. Discrete-time sinusoids are periodic only if the frequency of the signal is a rational number. We need to prove this statement,

          x(n+N) = x(n)

or,    cos[2?f0(n+N) + Ø] = cos[2?f0(n) + Ø]

or,           2?f0N=2k?

or,           f0 =k/N

     Also, there is one more interesting properties of Discrete-time sinusoids. Discrete-time signals whose frequencies are separated by an integral multiple of 2? are identical. Let there be another signal x2(t) which differs from the previous signal with a phase difference of 2?, then the x2(t) can be written as,

            x2(t)  = Acos[(?0 +2?)n + Ø]= Acos(?0 n+2?n + Ø)= Acos(?0n + Ø)

     which is equal to the former signal x(t). This can be interpreted as if a signal has a frequency |?| > ?. Then this signal can be said to be identical to another signal obtained from a signal with frequency |?| < ?. Thus we can say that,

       |?|? ?

Or,      |f| ?   ½

     All the frequencies in the above specified range are regarded as unique and all the other frequencies are said to be 'aliases'. Now it's high time to answer the second question regarding the need of sampling, the fact that most of the signals in nature are analog caters to the need of sampling and since in my previous tutorial I have made clear benefits of Digital Signal Processing over Analog Signal Processing, to obtain Discrete-time signals we have to do sampling of the Analog signals. Now let xa(t) be an analog signal and xa(t) with frequency F sampled periodically to obtain xa(nT) at a frequency 1/T. Then,

Ananlog signal, x a (t) = A cos(2?Ft + Ø)

Discrete-time signal,    x a (nT) = A cos(2?FnT + Ø)

Or, x a (nT) = A cos(2?Fn/F s + Ø)

      As we have discussed above in the discrete-time sinusoids |f| ? ½, Thus we conclude that,

|F/Fs| ? ½

Or,  |F| ? Fs/2

     Thus we can clearly see that if the max. frequency of the signal is Fmax then the sampling frequency, Fs must be greater than twice Fmax. This is also known as Nyquist Rate of sampling. This is always to be remembered that Fs must be twice the "max." frequency component of the signal not just any frequency of the signal otherwise it will  induce attenuation and signal distortion.

     Sampling Theorem: If the highest frequency contained in any analog signal xa(t) is Fmax=B and sampling is done at a frequency Fs > 2B, then xa(t) can be exactly recovered from its samples using the interpolation function,

       G(t) = sin (2?Bt)/2?Bt

      Thus,

Discrete-time Signals

Discrete-time Signals

A function(or sequence) x(n) is said to be Discrete-time signal if the independent variable assumes integral values and carries some information .The function is not defined in the time instants between the 2 samples, it should not be takes as zero, which is a general mis-conception among the students.

Some basic or elementary discrete-time signals or sequences are:-

{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}       1. Unit sample sequence – Represented by ?(n) and follows the following relation, given below. This signal is also referred to as Impulse.

Graph of Unit Sample Sequence

Fig. 2: Graph of Unit Sample Sequence

{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}       2. Unit-step sequence – Represented by u(n) and follows the following relation, given below.

Graph of Unit Step Sequence

             Fig. 3: Graph of Unit Step Sequence

{          C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}       3. Unit ramp signal – represented by ur(n) and follows the following relation, given below.

Graph of Unit Ramp Signal

Fig. 4: Graph of Unit Ramp Signal

{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}{C}       4. Exponential signal – represented by x(n) and follows the following relation, given below.

x(n)= an  ,       for all n

Where a is a parameter and the graph of x(n) could be of many types depending on the values of a. It is your task to figure out the different possibilities of x(n) depending on different values of a.

Classification of Discrete-time signals

Classification of Discrete-time signals

Energy and power signals: Let there be a signal x(n). Then the power, P and energy, E of the signal is given as,

Now, if the signal or sequence is having a finite energy i.e. E < ?. Then it is said to be energy signal and if the power of signal is finite i.e. P E < ?, then the signal is a power signal. There are some points to be remembered in this scenario that a signal can never be both Power and Energy signal. But a signal can be neither of both i.e. if the signal is having infinite power as well as infinite energy. If the energy of a signal is calculated over a period then it is represented as EN ,

Periodic and Non-periodic signals: If the signal or sequence repeats itself after a fixed period of time then the signal is said to be periodic in nature with a fundamental period of N, if N is the smallest interval after which it repeats itself. Signals otherwise are non-periodic in nature, i.e. if,

For all n if,      x(n+N)=x(n) , then x(n) is a periodic signal.

Symmetric(even) and anti-symmetric(odd) signal: A signal x(n) can be said to be symmetric and anti-symmetric if they follow the following relationship respectively,

                                                x(-n) = x(n)                              {symmetric}

                                                x(-n) = -x(n)                            {anti-symmetric}

Every signal can be expressed as a combination of even and odd signal, where the even component and the odd component are obtained by the following relationships,

                                                xe(n) = ½ [x(n) + x(-n)]

                                                xo(n) = ½ [x(n) – x(-n)]

The two components above follows their respective conditions of symmetricity and anti-symmetricity. And now the signal can be expressed as a sum of the even and odd components as,

                                                x(n) =  xe(n) + xo(n)

Transformation of independent variable :-

In further series of tutorials we will see that a discrete-time system employs some transformation of original excitation in the terms of independent variable to obtain desired response. So, here we are going to learn about some transformation that can be done on the independent variable.

{    · Shifting: A signal x(n) can be shifted in time domain by replacing the n with n-k, where k is an integer and depending on the sign of k, the signal will delay or advance in the time domain.

x(n) => x(n-k)

Then if k is positive then the signal will be delayed in time domain and if it were starting at n=0 then now it will start at n=kth interval of time. Similarly if k is –ve then the signal will be advanced in time by |k| units. Although it should be taken in account that in real –time analysis of signals advancement in time has no physical significance.

Graph showing Shifting of Signal

Fig. 5: Graph showing Shifting of Signal

     · Folding: If we replace the independent variable n with –n then it is known as folding of signal or it is said to be reflection of the signal about the origin n=0.

There is a general misconception among the students about commutative properties of shifting and folding but it must be kept in mind that they are not commutative in nature, i.e. folding of delayed signal is not same as delaying of folded signals.

For example, let a signal x(n),

first case: x(n) is first folded and then delayed by k units, So, folding will result in x(-n) and then delaying of same folded signal will result in x{-(n-k)} = x(-n+k).

second case: x(n) is first delayed by k units and then folded, delaying will result in x(n-k) and then application of folding will cause the signal to be transformed into x(-n-k).

So, we can see that in both the cases the signals obtained are not same.

Graph showing folding of Signal

Fig. 6: Graph showing Folding of Signal

Scaling: The third transformation revolves around the replacement of n with µn and this is known as time scaling of the signal. In the next tutorial we are going to learn about discrete-time systems, their representations and their classification. In this series of tutorials we will be focusing on LTI(linear-time invariant) system, so there is a need to have some basic idea about discrete-time systems to further dive into the details of LTI systems.


Filed Under: Tutorials


fulghamdictephe.blogspot.com

Source: https://www.engineersgarage.com/digital-signal-processing-sampling-and-discrete-time-signals/

0 Response to "How Fast Should a Signal Be Sampled to Go Back to Its Continuous"

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel