-1
$\begingroup$

Let me start with time domain representation of the original signal \begin{equation} x_n=\sum_{k=0}^{2N-1}X_ke^{j\frac{2\pi nk}{2N}} \end{equation} where $2N$ is number of time/frequency samples while $n$ and $k$ are time and frequency indices, respectively. Downsampling by factor of $M$ is essentially multiplying the time domain signal with the comb function which selects every M-th sample while others are set to zero, i.e.,

\begin{equation} \check{x}_{n}=x_n\cdot III(n;M) \end{equation}

where comb function $III(n;M)=\sum_\limits{{m=0}}^\limits{{\frac{2N}{M}-1}}\delta(n-mM)=\sum_\limits{{m=0}}^\limits{{\frac{2N}{M}-1}}e^{j\frac{2\pi nm}{M}}$. In other words downsampled signal is equal to \begin{equation} \check{x}_{n}=\sum_{k=0}^{2N-1}\sum_\limits{{m=0}}^\limits{{\frac{2N}{M}-1}}X_ke^{j\frac{2\pi nk}{2N}}e^{j\frac{2\pi nm}{M}}=\sum_{k=0}^{2N-1}X_k\sum_\limits{{m=0}}^\limits{{\frac{2N}{M}-1}}e^{j2\pi n(\frac{k}{2N}+\frac{m}{M})} \end{equation}

  • Are described steps correct up to now?
  • I assume that at one point $\sum_{k=0}^{2N-1}$ should become $\sum_{k=0}^{(2N/M)-1}$ since by downsampling I am actually reducing max "visible" frequency.This combined with summation over $m$ should ,I suppose, mimic aliasing but I am having problems mathematically showing that. So if somebody could make this a little bit more clear to me.

p.s. I know there a couple of topics related with downsampling and aliasing but although I've read them really carefully I was not able to grasp it completely.

$\endgroup$
6
  • $\begingroup$ off topic: Why do you always start with a signal length of $2N$ ? Why ? To make it even ? $\endgroup$
    – Fat32
    Jun 30, 2016 at 18:34
  • $\begingroup$ @Fat32 I define ti like that because in frequency domain than I have $N$ positive and $N$ negative frequencies. I could also define signal length to be $N$ and the I would have $N/2$ positive and $N/2$ negative frequencies.But this essentially does not change anything in question that I have posted. $\endgroup$
    – Cali
    Jun 30, 2016 at 19:12
  • $\begingroup$ You have N positive and N negative frequencies plus I guess $0$ so you should have 2*N+1 frequencies don't you? Anyway, of course you are free to choose your signal length, but this is just a less encountered way of expressing signal length... $\endgroup$
    – Fat32
    Jun 30, 2016 at 19:47
  • $\begingroup$ @Fat32 You are wright my mistake. Summation for negative frequencies should go from -1 to -N and positive from 0 to N-1, so in the end it sums up to 2N tones. $\endgroup$
    – Cali
    Jul 1, 2016 at 9:57
  • $\begingroup$ Do you understand how aliasing occurs when you sample an analog signal? (If so this would be an easy way to understand how aliasing occurs when you down-sample a digital signal...) $\endgroup$ Jul 4, 2016 at 2:21

1 Answer 1

4
$\begingroup$

See this good mathematical treatment of undersampling by Prof. Fowler at Binghamton University, using the comb function as you have done in the time domain, taking the z-transform of the resulting function, and then evaluating the z-transform on the unit circle to view the frequency spectrum.

IV-03 Transform View_2007.pdf

As for an intuitive understanding, I like to explain this by first understanding aliasing when going from the continuous time domain to the discrete time domain (analog-digital conversion), and then showing that decimation is just a re-sampling of the digital signal. The two converge to be the same when the former case is considered to be a discrete signal with an infinite sampling rate.

To review sampling, we note that sampling is multiplication in time of a signal with an impulse train.

Sampling

And making note that the sampling process in time as a stream of impulses, results in a stream of impulses in frequency:

FT of Impulse Train

Multiplication in time is convolution in frequency. Convolution is simplified when dealing with impulses as the result is a simple shift.

I have personally preferred to make note that each impulse at location $\omega_n$ in the complex frequency domain is the transform of $e^{j\omega_nt}$, and knowing that $e^{j\phi}$ is just a phasor with magnitude 1 and angle $\phi$, therefore each impulse in the frequency domain is a spinning phasor in time at rate $\omega_n$. Knowing this, the concept of positive and negative frequencies now make complete sense (direction of phasor rotation) as is clear with Euler's identify decomposing a cosine wave into two complementary spinning phasors ($2cos\omega_n t = e^{+j\omega_n t}+e^{-j\omega_n t}$) as shown by our input spectrum in the plot below. With this view I make note that exponents add when you multiply, so instead of the possible mental complexity of shifting through convolution, you can alternatively simply add the frequencies for each pair of impulses considered - for example, consider the 20Hz impulse specifically in the sampling spectrum in the figure below, this in the time domain is a spinning phasor at 20Hz rate, when multiplied in time with the input spectrum (two spinning phasors at +3 Hz and -3 Hz) produces 20+3 = 23 Hz and 20-3 = 17 Hz in the output spectrum. (the result is the same: a shift, just the latter offers an alternate explanation). This visual view, and thinking, has explained for myself so many operations in DSP in a more intuitive way, so I want to emphasize that point.

Note the resulting digital spectrum in the example shown in the figure below, sampling a 3 Hz sine wave with a 20 Hz sampling clock $F_s$. Due to the shift property mentioned, the input spectrum is replicated at all the impulse locations in frequency of the sampling clock. Since the digital spectrum is repeated over the interval from $-F_s/2$ to $+F_s/2$ (or equivalently from 0 to $F_s$), we only need to define it over that interval. However with regards to multi-rate signal processing with decimation and interpolation operations, I find it very helpful in getting an intuitive feel to extend it in the digital domain as I have done here (basically converting it to an analog equivalent spectrum).

Sampling 3Hz

Now consider the same scenario, but this time sampling a 23 Hz Sine Wave with a 20 Hz clock; the same digital spectrum will result! It should also be clear that this will also happen at 43 Hz, 63 Hz, 83 Hz ... Specifically the following frequency bands in the input spectrum will all alias into our baseband bandwidth B: $nF_s±B$, where B is a frequency band of interest at baseband, and n = ...-3,-2,1,0,1,2,3...

Sampling 23 Hz

Carrying this explanation to decimation, we make note that decimation is simply resampling a signal that is already digital. Just as we noted with the original digital spectrum that it uniquely extends from 0 to $F_s$, the new digital spectrum from a decimation by M will extend from 0 to $F_s/M$ while the spectrum itself remains unchanged on a unit Hz domain, giving the property that the spectrum stretches on a normalized digital frequency domain. Just as we identified with the original analog input spectrum frequency bands that would alias into the digital spectrum at $nF_s±B$, the new digital spectrum from a decimation by M will have frequency bands in the original digital spectrum that will alias into the final digital spectrum at $nF_s/M±B$ where n = 0 to M-1 (since $nF_s = \textrm{modulo}(n,M)F_s$.

$\endgroup$
3
  • $\begingroup$ Thank you for your explanation but I was looking more for mathematical background. I am aware that aliasing will occur if I sample the signal with sampling frequency smaller than $f_{max}$ but I have problem with deriving this statement mathematically. $\endgroup$
    – Cali
    Jul 4, 2016 at 14:39
  • $\begingroup$ I included a link with a very detailed mathematical explanation that I thought was very good- did you look at that? $\endgroup$ Jul 4, 2016 at 14:40
  • $\begingroup$ I am sorry, I overlooked the pdf that you have posted. Thank you! $\endgroup$
    – Cali
    Jul 4, 2016 at 14:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.