Discrete-time systems review
Введено
7:22
Цифровая обработка сигналов
Digital signal processing rebuilds the continuous theory for samples, where arithmetic is exact: N samples in, N numbers out, and every promise can be…
Озвучивание на английском · переключаемые субтитры на английском и китайском языках
В этом уроке
| English | Значение |
|---|---|
| impulse response/ˈɪmpʌls rɪˈspɒns/ | импульсная характеристика |
| convolution/kɒnvəˈluːʃn/ | свертка |
| causality/kɔːˈzælɪti/ | причинность |
| BIBO stability/ˌbiː aɪ biː ˈəʊ stəˈbɪlɪti/ | устойчивость по BIBO |
| frequency response/ˈfriːkwənsi rɪˈspɒns/ | частотная характеристика |
| DC gain/ˌdiː ˈsiː ɡeɪn/ | A system's steady output per unit of constant input: its transfer function at zero frequency. |
| Gain/ɡeɪn/ | |
| step/step/ | |
| pole/pəʊl/ | A value of s where a system's transfer function becomes infinite; poles set the natural response. |
A program on a list of numbers
- Every filter, every spectrum and every speedup in this course is a program running on a list of numbers.
- One list decides everything that program does: the impulse response 单位脉冲响应.
Convolution
- A linear time-invariant system is fully described by its impulse response 单位脉冲响应 $h[n]$.
- The output is the convolution 卷积 $y[n] = \sum_{k} h[k]\,x[n-k]$: slide the taps along the input, multiply and add.
h = [1, 2, 1] and x = [1, 1]. What is y?
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
y[0] = 1; y[1] = 2 + 1 = 3; y[2] = 1 + 2 = 3; y[3] = 1. The output is len(h) + len(x) − 1 = 4 samples long.
Causal and stable
- Causality 因果性: $h[n] = 0$ for $n < 0$, so no output comes before its input.
- BIBO stability BIBO 稳定: $\sum |h[n]|$ is finite, so every bounded input gives a bounded output.
A system with h[n] = 1.1ⁿ for n ≥ 0 is BIBO stable.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
The terms grow, so their sum diverges. A step input would drive the output without limit.
Match each property to its test.
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
All three are read straight off the impulse response.
Frequency response
- Feed in $e^{j\omega n}$ and the same exponential comes out, multiplied by $H(e^{j\omega}) = \sum h[n]e^{-j\omega n}$.
- That multiplier is the frequency response 频率响应. At $\omega = 0$ it is the tap sum, the DC gain.
What is the DC gain of h = [0.25, 0.5, 0.25]?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
The tap sum is 1, so a constant input passes unchanged.
Worked example: reading the frequency response
- What does $h = [1, 2, 1]$ do to each frequency?
- Take out the middle delay $e^{-j\omega}$:
- Gain 增益 $|H| = 2 + 2\cos\omega$: 4 at DC ($\omega = 0$), 2 at $\omega = \pi/2$ (a quarter of $f_s$), and 0 at $\omega = \pi$ (Nyquist). It is a gentle low-pass.
- Phase $-\omega$: a delay of exactly one sample at every frequency, because the taps are symmetric about the middle one.
- Divide by the tap sum, $h = [\tfrac14, \tfrac12, \tfrac14]$, and the DC gain becomes 1: the usual way to make a smoother that keeps a steady signal's level.
A filter has taps $h = [1, -1]$. Its gain $|H|$ at the Nyquist frequency ($\omega = \pi$)?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
$H(e^{j\pi}) = 1 - e^{-j\pi} = 1 - (-1) = 2$, while at DC the gain is $1 - 1 = 0$: a difference is a high-pass filter.
Worked example: the sliding table
- $h = [1, 2, 1]$ on a step 阶跃信号: $y = 1, 3, 4, 4, \ldots$ It settles at the tap sum, 4, after three samples.
- A pulse $[1, 1, 1]$ gives $1, 3, 4, 3, 1$.

h = [1, 3, 1] filters a unit step. What value does the output settle at?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
A step through any FIR settles at the tap sum, 1 + 3 + 1 = 5, after three samples.
Worked example: the recursive averager
- $y[n] = \dfrac{y[n-1] + x[n]}{2}$ has $h[n] = 0.5^{n+1}$, which never ends. Its step response is $0.5, 0.75, 0.875, 0.9375, \ldots = 1 - 2^{-(n+1)}$.
- In the $z$-domain: a one-sample delay is $z^{-1}$, so $Y(z) = \tfrac12 z^{-1}Y(z) + \tfrac12X(z)$ and $H(z) = \dfrac{0.5}{1 - 0.5z^{-1}}$. Its single pole 极点 is at $z = 0.5$, inside the unit circle, so it is stable. It approaches 1 but never arrives.
- Change one number: $y[n] = 1.2\,y[n-1] + x[n]$ has its pole at $z = 1.2$, outside the circle. After a single input of 1 the output is $1, 1.2, 1.44, 1.73, \ldots$: it grows for ever. Feedback is what makes an IIR filter able to be unstable; an FIR filter never can be.
The averager y[n] = (y[n−1] + x[n])/2 starts at rest. What is its step response at n = 4? Give 5 decimal places.
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
$1 - 2^{-5} = 0.96875$: it halves the remaining distance each step.
$y[n] = 1.2\,y[n-1] + x[n]$ gets a single input of 1 at $n = 0$. What is $y[5]$ (two decimals)?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
$y[n] = 1.2^n$, so $y[5] = 1.2^5 = 2.49$. The pole at 1.2 lies outside the unit circle, and the output keeps growing.
Four common slips
- Inconsistent flipping. In a hand table, flip one signal and keep to it.
- "$\sum h$ is the gain." It is the gain at DC only.
- Expecting a recursive filter to settle. It gets closer each step, but never exactly arrives.
- Checking only one frequency. $\sum h$ gives the DC gain 直流增益; evaluate $H(e^{j\omega})$ at $\omega = \pi$ too, where $[1, 2, 1]$ gives 0.
Which recursive filter is stable?
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
The pole sits at the feedback coefficient. Only 0.8 is inside the unit circle; a coefficient of 1 is an accumulator, which is only marginal.
Recap
- Output = input convolved with $h[n]$.
| Filter | $h[n]$ | Step response |
|---|---|---|
| FIR | $[1, 2, 1]$ | settles at 4 |
| IIR | $0.5^{n+1}$, for ever | approaches 1 |
- Causal: $h[n] = 0$ for $n < 0$. Stable: $\sum |h| < \infty$, or poles inside the unit circle.
- $H(e^{j\omega})$ is the frequency response 频率响应; the tap sum is the DC gain. $[1, 2, 1]$ has gain $2 + 2\cos\omega$: 4 at DC, 0 at Nyquist.
Что пошло не так? Это увидит только команда сайта.