with one click
clip
Clamp signal amplitude to a maximum absolute value
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Clamp signal amplitude to a maximum absolute value
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Neurodata Without Borders (.nwb) — the de-facto standard for in-vivo electrophysiology (Neuropixels / AIBS / DANDI / IBL)
Index of L0 data-format loader skills by family
Index of all L2 paradigm skills by group + analysis_goal → paradigm matrix
Two-phase BCI data preprocessing pipeline: deep-inspect → plan → propose → user confirm → automated code/execute/QC/export
BIDS-iEEG sidecar (*_channels.tsv / *_electrodes.tsv / *_coordsystem.json / *_ieeg.json) — clinical sEEG / ECoG standard
Multiscale Electrophysiology Format v3 (Mayo Clinic) — long-duration encrypted sEEG
| name | clip |
| description | Clamp signal amplitude to a maximum absolute value |
| layer | L3 |
| group | channel |
| metadata | {"tags":["operator","clip","clamp","artifact","threshold"],"modalities":["eeg","seeg","ecog","meg"],"step_string":"clip","analysis_goal_allowed":["classification","source_localization","feature_extraction","clinical_screening","exploratory","generic","connectivity","phase_amplitude_coupling","online_inference"],"analysis_goal_forbidden":[]} |
Clamps all data values to the range [-max_abs, +max_abs]. Values exceeding the threshold are replaced with the threshold value. Simple but effective artifact suppression.
clip:{max_abs}
Examples:
clip:5 — Clamp to [-5, +5] (after standard scaling)clip:100 — Clamp to [-100, +100] (raw microvolts)clip:3 — Aggressive clipping at 3 standard deviations| Parameter | Type | Default | Description |
|---|---|---|---|
| max_abs | float | required | Maximum absolute amplitude |
| After scaling method | Recommended clip | Rationale |
|---|---|---|
scale:robust | clip:5 | IQR-based; 5 IQRs captures 99.9% of clean data |
scale:standard | clip:3 or clip:5 | 3 SD = 99.7% of Gaussian; 5 SD = very conservative |
| No scaling | clip:100 (uV) | Typical EEG range is ±100 uV |
import numpy as np
max_abs = 5.0 # threshold in scaled units
data = np.clip(data, -max_abs, max_abs)
np.clip(data, -max_abs, max_abs) — in-place-safe clamping