Skip to content

API

The API pages document Python signatures and link to executable examples. For expected inputs and outputs, scientific interpretation, limitations, and references, use the Biosiglib method catalog.

ECG

Function Description
baselineremove Estimate and remove baseline wander from fiducial isoelectric samples.
pantompkins Detect ECG R waves and expose the processing signals.
sloperange Derive a respiration signal from ECG slopes.

HRV

Function Description
fdmetrics Calculate frequency-domain variability metrics.
fillgaps Reconstruct missing events in an ordered series.
ipfm Reconstruct instantaneous heart rate and optional TVIPFM modulation.
osp Separate respiration-related HRV modulation from its orthogonal residual.
removefp Remove false-positive events from an ordered series.
tdmetrics Calculate time-domain variability metrics.

Tools

Function Description
lpd_filter Apply the low-pass differentiator used by detection algorithms.
medfilt_threshold Compute a median-filtered adaptive threshold.
nan_filter Filter data while preserving NaN gaps.
nan_filtfilt Apply zero-phase filtering while preserving NaN gaps.
snap_to_peak Refine event positions by snapping them to nearby peaks.