# Send Pywayne Dsp to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "dsp-2",
    "name": "Pywayne Dsp",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/wangyendt/dsp-2",
    "canonicalUrl": "https://clawhub.ai/wangyendt/dsp-2",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/dsp-2",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dsp-2",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "dsp-2",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T15:59:55.187Z",
      "expiresAt": "2026-05-14T15:59:55.187Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dsp-2",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=dsp-2",
        "contentDisposition": "attachment; filename=\"dsp-2-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "dsp-2"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/dsp-2"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/dsp-2",
    "downloadUrl": "https://openagent3.xyz/downloads/dsp-2",
    "agentUrl": "https://openagent3.xyz/skills/dsp-2/agent",
    "manifestUrl": "https://openagent3.xyz/skills/dsp-2/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/dsp-2/agent.md"
  }
}
```
## Documentation

### Pywayne Dsp

数字信号处理工具集，提供滤波器、峰值检测、去趋势、曲线相似度等信号处理功能。

### Quick Start

from pywayne.dsp import butter_bandpass_filter, peak_det, SignalDetrend

# Butterworth 低通滤波
filtered = butter_bandpass_filter(signal, order=3, lo=0.5, hi=40, fs=250)

# 峰值检测
peaks, valleys = peak_det(signal, delta=0.5)

# 信号去趋势
detrender = SignalDetrend(method='linear')
detrended = detrender(raw_signal)

### butter_bandpass_filter

巴特沃斯带通滤波器。

from pywayne.dsp import butter_bandpass_filter

# 带通滤波
filtered = butter_bandpass_filter(
    signal=raw_signal,
    order=4,
    lo=1,
    hi=50,
    fs=250,
    btype='bandpass'
)

参数说明：

参数类型说明signalarray输入信号orderint滤波器阶数lofloat下限截止频率 (Hz)hifloat上限截止频率 (Hz)fsfloat采样频率，默认为 0（不归一化）btypestr滤波器类型：'lowpass', 'highpass', 'bandpass', 'bandstop'realtimebool是否实时处理，默认 False

### ButterworthFilter

纯 numpy 实现的巴特沃斯滤波器类，支持完整的 IIR 滤波功能。

from pywayne.dsp import ButterworthFilter

# 方式 1：通过参数设计
bf = ButterworthFilter.from_params(order=4, fs=200, btype='bandpass', cutoff=(1, 50))
y, zf = bf.lfilter(signal)

# 方式 2：通过系数构造
bf2 = ButterworthFilter.from_ba(b, a)
y, zf = bf2.lfilter(signal)

# 零相位滤波（前向-后向）
y, zf = bf.filtfilt(signal)

# 去趋势
detrended = ButterworthFilter.detrend(signal, method='linear')

参数设计方法：

ButterworthFilter.from_params(order, fs, btype, cutoff, cache_zi=True)
ButterworthFilter.from_ba(b, a, cache_zi=True)

参数说明：

参数类型说明orderint滤波器阶数fsfloat采样频率 (Hz)btypestr'lowpass', 'highpass', 'bandpass', 'bandstop'cutofffloat/Tuple截止频率 (Hz)，带通为 (low, high) 元组cache_zibool是否预计算稳态初始条件

实例方法：

方法说明zi(self)返回稳态初始条件数组lfilter(self, x, zi=None)零相位滤波，返回 (y, zf)filtfilt(self, x, padtype='odd')零相位滤波，可指定填充方式

### peak_det

峰值检测函数，基于 MATLAB peakdet 转换。

from pywayne.dsp import peak_det

max_peaks, min_peaks = peak_det(signal, delta=0.5)

参数说明：

参数类型说明varray输入信号deltafloat检测阈值，控制检测灵敏度xarray可选的 x 轴数据，若未提供则使用下标

返回值：(maxima_indices, minima_indices) - 峰值和谷值的索引位置

### find_extremum_in_sliding_window

在滑动窗口中查找极值。

from pywayne.dsp import find_extremum_in_sliding_window

extrema = find_extremum_in_sliding_window(data, k=50)

参数说明：

参数类型说明datalist输入数据列表kint滑动窗口大小

返回值：[minima, maxima] - 含局部极值的列表

### FindSlidingWindowExtremum

滑动窗口极值查找器类，用于实时数据流。

from pywayne.dsp import FindSlidingWindowExtremum

detector = FindSlidingWindowExtremum(win=100, find_max=True)

# 应用新值
for sample in stream:
    current_peak = detector.apply(sample)
    # 处理 current_peak

方法：

方法说明__init__(win, find_max)初始化，指定窗口大小和查找类型（最大值或最小值）apply(val)更新窗口数据，返回当前极值

### SignalDetrend

信号去趋势处理器，支持多种去趋势算法。

from pywayne.dsp import SignalDetrend

# 去除线性趋势
detrender = SignalDetrend(method='linear')
detrended = detrender(signal)

# 去除均值趋势
detrender = SignalDetrend(method='mean')
detrended = detrender(signal)

# LOESS 去趋势
detrender = SignalDetrend(method='loess', span=0.3)
detrended = detrender(signal)

方法：

方法说明methodstr__call__(x)应用去趋势算法处理输入信号

去趋势方法：

方法说明none不处理，返回原信号mean去除均值linear去除线性趋势poly去除多项式趋势loess局部加权回归平滑wavelet小波变换去趋势emdEMD 去趋势ceemdanCEEMDAN 去趋势median中值滤波去趋势

### CurveSimilarity

曲线相似度计算，支持动态时间规整（DTW）。

from pywayne.dsp import CurveSimilarity

cs = CurveSimilarity()
distance = cs.dtw(curve1, curve2, mode='global')

方法：

方法说明dtw(x, y, mode='global', *params)计算两条曲线的 DTW 距离modestr

### OneEuroFilter

一欧罗滤波器，用于平滑信号并减少延迟。

from pywayne.dsp import OneEuroFilter

# 初始化
euro_filter = OneEuroFilter(te=0.02, mincutoff=1.0, beta=0.007, dcutoff=1.0)

# 应用滤波
smooth_value = euro_filter.apply(new_measurement, te=0.02)

参数说明：

参数类型说明tefloat采样时间（秒），自动推断默认值mincutofffloat最小截止频率betafloat调整速率参数dcutofffloat导数截止频率

### WelfordStd

使用 Welford 算法进行在线标准差计算。

from pywayne.dsp import WelfordStd

std_calculator = WelfordStd(win=50)

for sample in data_stream:
    current_std = std_calculator.apply(sample)
    # 使用 current_std 进行判断

方法：

方法说明__init__(win)初始化，指定窗口大小apply(val)更新标准差计算，返回当前窗口标准差

### 应用场景

场景使用函数心电图信号分析butter_bandpass_filter, peak_det传感器数据平滑OneEuroFilter, ButterworthFilter数据预处理SignalDetrend曲线相似度比较CurveSimilarity.dtw质量监控WelfordStd
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: wangyendt
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-07T15:59:55.187Z
- Expires at: 2026-05-14T15:59:55.187Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/dsp-2)
- [Send to Agent page](https://openagent3.xyz/skills/dsp-2/agent)
- [JSON manifest](https://openagent3.xyz/skills/dsp-2/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/dsp-2/agent.md)
- [Download page](https://openagent3.xyz/downloads/dsp-2)