feat: oversampling examples, noise shaping, and MATLAB noiseshape#40
Merged
Arcadia-1 merged 2 commits intoJun 11, 2026
Merged
Conversation
Expose ifilter, perfosr, and ntfperf wrappers aligned with MATLAB names. Harden extract_freq_components validation, extend OSR sweep options, and document parity in API docs and python_matlab_parity.rst. Co-authored-by: Cursor <cursoragent@cursor.com>
Add Python 10_oversampling example scripts (noise shaping, ifilter, ntfperf/perfosr), extend ADC_Signal_Generator noise shaping, add MATLAB noiseshape.m with tests, and wire examples into docs and skill maps. Co-authored-by: Cursor <cursoragent@cursor.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
本 PR 在过采样 / 噪声整形工作流上补充 Python 示例、测试 与 MATLAB
noiseshape工具,并包含前置 commit 中的 MATLAB 兼容 Python API(ifilter/perfosr/ntfperf)。Python 新增
示例目录
examples/10_oversampling/exp_o01_noise_shaping_spectrum.pyexp_o02_ifilter_band_analysis.pyifilter提取信号频带exp_o03_ntfperf_perfosr.py测试
tests/unit/oversampling/test_noise_shaping_examples.py— 噪声整形生成器、示例脚本 smoke testtest_user_guide_skill_examples.py/ skillexample-map.md库变更
ADC_Signal_Generator.apply_noise_shaping()支持自定义 NTF 系数examples/README.md、docs/source/examples/index.rstMATLAB 新增
matlab/src/noiseshape.m— 生成/处理 NTF 噪声整形量化信号(可内置正弦或处理外部输入)matlab/tests/common/test_noiseshape.m— 1/2 阶及自定义 NTF 单元测试run_common.m— 纳入test_noiseshapeREADME.md— 简要说明前置 commit(同分支)
feat(python): add MATLAB-compatible oversampling APIs—ifilter/perfosr/ntfperf及文档Test plan
cd python && uv run pytest tests/unit/oversampling/ -qcd python && uv run pytest tests/integration/test_user_guide_skill_examples.py -qcd matlab; addpath(genpath('src')); addpath(genpath('tests')); test_noiseshapeexamples/10_oversampling/exp_o0*.py并检查输出 PNG