ระบบเวลาไม่ต่อเนื่อง
แนะนำใหม่ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| difference equation/ˈdɪfrəns ɪˈkweɪʒn/ | สมการผลต่าง |
| DC gain/ˌdiː ˈsiː ɡeɪn/ | กำลังขยาย DC |
| 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], เริ่มจากสภาวะหยุดนิ่ง ค่า impulse response h[n] คืออะไร?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
impulse ให้ค่า $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] ด้วย unit step และ 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] มีการขยายสัญญาณ DC เท่ากับ
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$\dfrac{1}{1 - 0.75} = 4$. ขั้วที่อยู่ใกล้ 1 หมายถึงการขยายสัญญาณ DC ที่ใหญ่และการเข้าหาที่ช้า
For y[n] = 0.5y[n−1] + x[n] with a step, the gap to the final value halves every sample.
ความยาก 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$: the mode $1.1^{n}$ grows. The others lie inside the unit circle.
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 |
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้