# Sampling a Continuous-Time Signal

The signals of our interest — wireless communication waveforms — are continuous-time as they have to travel through a real wireless channel. To process such a signal using digital signal processing techniques, the signal must be converted into a sequence of numbers. This can be done through the process of periodic sampling.

Consider a band-limited continuous-time signal and its frequency domain representation with bandwidth , shown in the above Figure. A discrete-time signal can be obtained by taking samples of at equal intervals of seconds. This process is shown in Figure below, and mathematically represented as

The time interval seconds between two successive samples is called the sampling period or sample interval, and its reciprocal is called the sample rate or sampling frequency. Sample rate is the most fundamental parameter encountered in digital signal processing applications.

Let us find out what happens in frequency domain as a result of this process. Consider a continuous-time sinusoidal signal

and obtain its sampled version at a rate samples/second.

(1)

Note that above is the frequency of a discrete-time sinusoid . Let us sample at the same rate another sinusoid with continuous frequency , where .

which is exactly the same as discrete-time sinusoid in Eq (1). It can be concluded that at the output of sampling process, it is impossible to distinguish between two discrete-time signals whose frequencies are Hz apart. So for an arbitrary frequency after sampling

and so on. It is just like saying that any two angles apart are all the same. For example,

Therefore, all the following frequency ranges are the same:

The range is called the primary zone. The spectrum of the continuous-time signal shown in this Figure is now drawn in Figure below. We adopt the convention of indicating this zone within dotted red lines and drawing its spectral contents with solid lines while the spectral replicas with dashed lines.

The fact that a continuous frequency higher than Hz appears similar to a frequency Hz apart from itself can be understood in time domain from Figure below. Observe that samples are taken at a rate such that both sinusoids pass through the same points. In fact, there are infinitely many sinusoids ( Hz apart) which pass through the same points, and hence become indistinguishable from each other after sampling.

In the light of above discussion, it is evident from this Figure that if a continuous-time signal has a bandwidth greater than , it will appear as an alias of a lower frequency within the range and distort the signal. This is illustrated in Figure below for a signal whose bandwidth extends beyond the primary zone.

Therefore, for a signal with bandwidth B, the sampling frequency should be such that the following inequality is satisfied to prevent any distortion in the sampled signal:

or written in another form

(2)

Sampling theorem

As shown above, sampling in time domain at intervals of creates periodicity in frequency domain with a period of . Therefore, a band-limited continuous-time signal with highest frequency (or bandwidth) Hz can be uniquely recovered from its samples provided that the sample rate samples/second.

The frequency is called the Nyquist rate while is called the Nyquist frequency or folding frequency (see this Figure). Sampling theorem is one of the two most fundamental relations in digital signal processing, the other being the relationship between continuous and discrete frequencies.

A natural extension is to understand the notion of time in a discrete-time setting. As long as the sampling interval or sample rate is known, one can easily determine the period or frequency of a signal. For the sinusoid of Figure below for example, the period is clearly samples, and to find it in actual seconds, sample interval or sample rate must be known.

For seconds,

and its frequency Hz. However, for a seconds, the same discrete-time sinusoid has

with frequency Hz. Interestingly, the samples of both sinusoids will be stored in memory as a sequence of numbers with no difference in discrete domain.

Is aliasing always harmful?

Aliasing – the reemergence of frequencies higher than within the range of primary zone – is a consequence of disobeying the sampling theorem. It may seem so but aliasing is not always bad. In fact, there are three types of aliasing:

1. Harmful aliasing that distorts the signal and must be avoided for proper representation of signal in discrete domain. This is when .
2. Useful aliasing that shifts the signal spectral bands up and down for free to our desired frequency through careful system design. This is employed in systems operating at multiple clock rates.
3. Harmless aliasing that is neither good nor bad for the system. This occurs, for example, during band-limited pulse shape design to avoid inter-symbol interference (ISI).

Don’t worry much if it sounds too confusing at this stage. We will cover everything in detail when the topic arises.

A final remark about sampling a continuous-time signal is that for a fixed time interval of data collection, the more samples we take, the higher the energy in the resulting discrete-time signal is. This is because there will be more samples in the discrete-time signal during a fixed interval for a higher sampling rate, see its definition in energy and power.