搜索

PythonReactSEOPDF
GitHub Skill

compare-methods

ライブラリ内の類似した信号処理手法の技術的・物理的な違いを分析し、比較解説付きのノートブックセクションを作成する

tatsuki-washimi☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Document Method Comparison

This skill provides a procedure for creating educational sections in Jupyter Notebooks that compare two or more methods (e.g., gwpy vs gwexpy).

Instructions

  1. Technical Analysis:

    • Examine the source code of both methods to identify implementation differences.
      • Averaging/Integration: Does it downsample the data using a sliding window? (e.g., gwpy.heterodyne)
      • Filtering: Does it use a Low-Pass Filter (LPF) like Butterworth or FIR? (e.g., gwexpy.lock_in)
    • Compare numerical characteristics like time resolution and frequency response (aliasing).
  2. Physical/Conceptual Context:

    • Check if there are differences between engineering definitions and package conventions.
      • Example: gwpy.heterodyne effectively performing "Homodyne" detection relative to the carrier frequency.
    • Identify the target use case for each (e.g., stationary signal vs transient analysis).
  3. Construct Comparative Sample Code:

    • Create a synthetic signal that highlights the differences (e.g., a signal with rapid amplitude/phase changes).
    • Execute both methods on the same input signal with comparable parameters (e.g., matching the averaging stride with the filter bandwidth).
    • Visualize results in a single plot for direct comparison.
      • Use plt.step(..., where='post') for discrete averaged data.
      • Use plt.plot(...) for continuous filtered data.
  4. Draft Markdown Explanation:

    • Use tables to summarize differences (Algorithm, Resolution, Post-Processing, Features).
    • Provide a clear summary statement on "which method to choose" for specific user goals (e.g., "Use .lock_in() for control system transient response").
  5. Integration:

    • Use Python scripts to inject these cells (Markdown and Code) into the target .ipynb file, typically appending to the end or inserting into a relevant section.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!