Multirate processing
แนะนำใหม่
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 | ความหมาย |
|---|---|
| decimation/ˌdesɪˈmeɪʃn/ | การลดอัตราส่วน |
| interpolation/ɪnˌtɜːpəˈleɪʃn/ | การเพิ่มอัตราส่วน |
| polyphase/ˌpɒlɪˈfeɪz/ | การแยกแบบโพลีเฟส |
อัตราการสุ่มตัวอย่างคืองบประมาณในการคำนวณ
- ตัวกรองที่ทำงานที่ 48 kHz ทำงานมากกว่าตัวกรองเดียวกันที่ 8 kHz ถึงหกเท่า
- การประมวลผลหลายอัตรา (Multirate processing) จะทำแต่ละงานที่อัตราต่ำสุดที่ยังทำได้
การลดอัตรา: กรองก่อน
- การลดอัตรา โดย $M$ จะเก็บทุก $M$th ตัวอย่าง ความถี่Nyquist ใหม่จะเป็น $f_{s}/(2M)$
- กรองLow-pass ต่ำกว่า $f_{s}/(2M)$ ก่อน หากมีอะไรสูงกว่านั้นจะFold back เข้ามาในย่านความถี่ และไม่สามารถกำจัดออกได้
48 kHz audio is decimated by 4. Below what frequency must it be low-passed first, in kHz?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The new rate is 12 kHz, so its Nyquist frequency is $48/(2 \times 4) = 6$ kHz.
Aliasing caused by decimating without a filter can be removed afterwards with a better filter.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The folded energy now sits inside the band, mixed with the real signal. Nothing can separate them.
การเพิ่มอัตรา: กรองหลัง
- การเพิ่มอัตรา โดย $L$ จะใส่ $L - 1$ ตัวเลขศูนย์ระหว่างตัวอย่าง ซึ่งจะทำให้เกิดภาพสเปกตรัมซ้ำๆ เรียกว่า Images
- กรองLow-pass ต่ำกว่าความถี่Nyquist เดิม afterwards เพื่อกำจัดพวกมัน ออก พร้อมGain เท่ากับ $L$ เพื่อคืนค่าระดับเสียง


Put the steps of interpolation by L in order.
ความยาก 3/5 · 200 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
In practice the gain of L is built into the low-pass filter.
A signal is interpolated by 6. What gain must the image filter have?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The stuffed zeros dilute the level by 6, so the filter multiplies by 6.
Polyphase
- ในตัวกรองInterpolation ข้อมูลเข้าส่วนใหญ่คือตัวเลขศูนย์ที่ถูกแทรกไว้ ดังนั้นการคูณส่วนใหญ่จึงเสียเปล่า
- Polyphase แบ่งตัวกรองออกเป็น $L$ ตัวกรองย่อยที่แต่ละตัวทำงานที่อัตราต่ำ มันเป็นการคำนวณทางคณิตศาสตร์เหมือนกันเป๊ะ แต่ใช้การคูณเพียง $1/L$ ส่วน
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Worked example: both directions by hand
- Decimate by 2: $x = [1, 2, 3, 4, 5, 6]$ keeps every 2nd sample: $[1, 3, 5]$. (For this arithmetic example, filtering is omitted; an input must be band-limited below the new Nyquist frequency before decimation to avoid aliasing.)
- Interpolate by 2: zero-stuff $[1, 3, 5]$ to $[1, 0, 3, 0, 5, 0]$. Filter with $h = [0.5,\ 1,\ 0.5]$, which has the needed gain of $L = 2$ at DC: after a one-sample delay the output is $1, 2, 3, 4, 5, \dots$ The zeros are filled with the averages of their neighbours, and the original samples come back untouched.
- The polyphase view: split $h$ into its two phases, $[1]$ and $[0.5,\ 0.5]$. Output samples alternate between them: even outputs copy an input ($1 \times x$), odd outputs average two inputs. No multiply ever touches a stuffed zero.
- Decimation saves the same way: a 60-tap filter before ↓6 from 48 kHz would do $60 \times 48\,000 = 2.88$ million multiplies a second. Only every 6th output is kept, so compute only those: $60 \times 8000 = 480\,000$.
$[2, 6, 4]$ is interpolated by 2 (zero-stuffed, then filtered with $h = [0.5, 1, 0.5]$). What value fills the gap between 6 and 4?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The odd phase $[0.5, 0.5]$ averages the neighbours: $0.5 \times 6 + 0.5 \times 4 = 5$. After the one-sample delay the full output is $2, 4, 6, 5, 4$.
A 100-tap anti-alias filter before ↓4 runs on a 96 kHz input. Multiplies per second if only the kept outputs are computed, in millions?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Outputs kept: $96\,000/4 = 24\,000$ per second, each 100 multiplies: 2.4 million, against 9.6 million for every output.
Worked example: 8 kHz to 48 kHz
- เอนเตอร์โพลेटด้วย 6 แล้วทำ low-pass ที่ 4 kHz เพื่อกำจัดภาพที่ 8, 16, 24, 32 และ 40 kHz
- หากทำงานแบบธรรมดา ตัวกรองจะทำงานที่ 48 kHz เมื่อมี subfilters แบบ polyphase จำนวน 6 ที่ 8 kHz จะต้องการจำนวนการคูณเพียงหนึ่งในหกของผลผลิตเดียวกัน
An interpolate-by-4 filter is rewritten in polyphase form. What changes?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Polyphase skips the multiplies by stuffed zeros. Nothing else changes.
Worked example: 48 kHz to 72 kHz
- $72/48 = 3/2$: เพิ่มตัวอย่างเป็น 3 เท่าไปเป็น 144 kHz กรองครั้งเดียว แล้วเก็บทุก ๆ 2 ตัวอย่าง
- การทำ low-pass ที่ 24 kHz จะกำจัดทั้งภาพจากการ ↑3 และ alias จาก ↓2
ข้อผิดพลาดทั่วไปสามประการ
- ลดตัวอย่างก่อนการกรอง alias จะกลายเป็นถาวร
- ลืมค่า gain การใส่ศูนย์ (zero-stuffing) จะแบ่งระดับลง $L$ เท่า; ตัวกรองต้องคูณด้วย $L$
- "Polyphase เป็นเพียงการประมาณ" มันคือคำนวณเดียวกันเป๊ะ แต่ถูกจัดลำดับให้ดีขึ้น
Which L/M converts 44.1 kHz to 48 kHz?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
48 000/44 100 = 160/147 in lowest terms, so up by 160 and down by 147.
สรุปทบทวน
- ↓$M$: ทำ low-pass ที่ $f_{s}/(2M)$ ก่อน
- ↑$L$: ทำ low-pass ที่ Nyquist เก่าทีหลัง พร้อม gain $L$
- Polyphase: ได้ผลลัพธ์เดียวกันสำหรับ $1/L$ ของการคูณ
Match each operation to the filter it needs.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Every rate change needs its low-pass; only the place and cutoff differ.
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้