cogpy.preprocess

Signal preprocessing: bandpass/notch filtering, spatial smoothing, common median reference, z-score normalization, bad-channel detection, interpolation, line-noise removal, and resampling.

Guide: How to filter signals | Tutorial: Bad Channel Detection | Design: Preprocessing Pipeline

Submodules

cogpy.preprocess.badchannel

Bad-channel preprocessing utilities.

cogpy.preprocess.filtering

Spatiotemporal filtering for xarray signals.

cogpy.preprocess.interpolate

Spatial interpolation for bad / missing channels.

cogpy.preprocess.linenoise

module for line noise estimation and removal LineNoiseEstimator: class for line noise estimation and removal fit transform performance performance_sliding_window comparision_plot multitaper_func detect_linenoise_components sum_linenoise_harmonic_power set_attributes sort_linenoise_components

cogpy.preprocess.resample

Signal preprocessing: filtering, bad-channel detection, resampling, and interpolation.

Submodules

filtering : Temporal (IIR), spatial (grid), reference (CMR), and normalization filters. badchannel : Feature extraction, spatial normalization, and DBSCAN-based bad-channel detection. resample : Decimation and resampling utilities. interpolate : Spatial interpolation for missing / bad channels. linenoise : Line-noise (50/60 Hz) removal via adaptive notch filtering.