Дискретно-временные системы
Введено
7:20
Сигналы и системы
The AC course asked what one circuit does at one frequency. This course asks what a system does to any input at all. We move from system properties to three…
Озвучивание на английском · переключаемые субтитры на английском и китайском языках
В этом уроке
| English | Значение |
|---|---|
| equaliser | |
| difference equation/ˈdɪfrəns ɪˈkweɪʒn/ | разностное уравнение |
| unit step | |
| DC gain/ˌdiː ˈsiː ɡeɪn/ | Коэффициент усиления по постоянному току |
| negative root | |
| unit circle/ˈjuːnɪt ˈsɜːkl/ | единичная окружность |
An equaliser in a loop
- Once sound is sampled, an equaliser 均衡器 is a few lines of code: each new output is built from the new input and the outputs just before it.
- Running that loop by hand, one sample at a time, is the clearest way to see what it does. This lesson does exactly that.
Difference equations
- A discrete-time system is often a difference equation 差分方程, such as $y[n] = 0.5\,y[n-1] + x[n]$: half the last output plus the new input.
- Discrete convolution plays the same role as in continuous time: $y[n] = \displaystyle\sum_{k} x[k]\,h[n - k]$.
y[n] = 0.5y[n−1] + x[n], система в начальном состоянии покоя. Какова импульсная характеристика h[n]?
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Импульс даёт значение $y[0] = 1$, затем каждый следующий отсчет уменьшается вдвое: $1, 0.5, 0.25, \dots = 0.5^{n}$.
Iterate, one sample at a time
- State the starting condition, here $y[-1] = 0$, then compute forwards. Each line uses only numbers already found.
- With a unit step 单位阶跃, $y[0] = 1$, $y[1] = 1.5$, $y[2] = 1.75$, $y[3] = 1.875$.
![Iterating y[n] = 0.5·y[n−1] + x[n] on a step: each step halves the gap to the limit 2.](/handout-media/university_electrical_engineering/assets/06-iteration.png?v=1793397755)
y[n] = 0.5y[n−1] + x[n] при входной единичной ступени и y[−1] = 0. Каково значение y[4]?
Сложность 2/5 · 140 монет + небольшой бонус за первое завершение сегодня
$1,\ 1.5,\ 1.75,\ 1.875,\ 1.9375$: каждая ступень уменьшает разрыв со значением 2 вдвое.
The closed form
- For $y[n] = a\,y[n-1] + x[n]$ with a step, the outputs $1,\ 1 + a,\ 1 + a + a^{2}, \dots$ are geometric partial sums: $y[n] = \dfrac{1 - a^{n+1}}{1 - a}$.
- If $|a| < 1$, the limit is $\dfrac{1}{1 - a}$, the DC gain 直流增益. For $a = 0.5$ it is 2, and the gap to it halves every sample.
y[n] = 0.75y[n−1] + x[n] имеет коэффициент усиления по постоянному току
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
$\dfrac{1}{1 - 0.75} = 4$. Полюс, близкий к 1, означает большой постоянный коэффициент усиления и медленное приближение.
Для y[n] = 0.5y[n−1] + x[n] со ступенчатым входом отклонение от конечного значения уменьшается вдвое на каждом отсчете.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Отклонение равно $2 - y[n] = 2 \times 0.5^{n+1}$, которое уменьшается вдвое с каждым $n$.
Worked example: a negative root
- $a = -0.8$: $y[n] = \dfrac{1 - (-0.8)^{n+1}}{1.8}$. The samples go $1,\ 0.2,\ 0.84,\ 0.328, \dots$, swinging either side of the limit 0.556.
- The sign flip every sample is the signature of a negative root 负根. Since $|a| = 0.8 < 1$, the swings still shrink: stable.

Compute the next sample; test more than one input
$y[n]=a\,y[n-1]+x[n],\quad |a|<1\text{ for causal BIBO stability}$
Recover the worked step sequence 1, 1.5, 1.75, 1.875 from the stated zero initial state. Compare the alternating approach for a = −0.8. At a = −1, a step trace stays bounded, but an alternating input of the same bounded amplitude produces growing output. The strict root condition decides stability, rather than the appearance of one short trace.
y[n] = −0.8y[n−1] + x[n] при ступенчатом входе. Выходной сигнал
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Отрицательный полюс меняет знак отклонения на каждом отсчете: $1, 0.2, 0.84, 0.328, \dots$ Колебания уменьшаются, потому что $|-0.8| < 1$.
Stability: inside the unit circle
- The mode of $y[n] = a\,y[n-1]$ is $a^{n}$. It decays if $|a| < 1$ and grows if $|a| > 1$.
- So a discrete system is stable when all its characteristic roots lie inside the unit circle 单位圆, $|a| < 1$.
Какая рекурсия является неустойчивой?
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
$|1.1| > 1$: модальное $1.1^{n}$ растет. Остальные находятся внутри единичного круга.
Three common slips
- An unstated starting value. Write $y[-1]$ before the first line.
- Judging stability from a few samples. Only $|a| < 1$ decides.
- Reading the DC gain from $y[0]$. It is the limit $\dfrac{1}{1 - a}$, reached as the samples settle.
Расставьте шаги для итерации разностного уравнения вручную.
Сложность 3/5 · 200 монет + небольшой бонус за первое завершение сегодня
Каждая строка использует только уже найденные значения; затем аналитическое выражение показывает, куда стремятся выборки.
Recap
- Iterate a difference equation 差分方程 one sample at a time from a stated start.
- $y[n] = a\,y[n-1] + x[n]$ has DC gain $\dfrac{1}{1 - a}$ when $|a| < 1$.
- Roots inside the unit circle: stable; negative roots alternate in sign. For $y[n] = a\,y[n-1] + x[n]$ on a step:
| $a$ | Step response | Limit |
|---|---|---|
| 0.5 | rises smoothly, gap halves each sample | 2 |
| −0.8 | swings either side, shrinking | 0.556 |
| $\lvert a \rvert > 1$ | grows without limit | none: unstable |
Что пошло не так? Это увидит только команда сайта.