Skip to content

Methods

This section explains what each method does, what data it expects, what it returns, and the main limitations that affect interpretation. Biosiglib defines the shared behavior; follow the implementation links on each page to use the method in Python or MATLAB.

Method Area What it does
ECG baseline removal from fiducial isoelectric samples ECG Estimates a slowly varying ECG baseline from local means around fiducial positions and subtracts its spline interpolation.
Pan-Tompkins-style ECG R-wave detection ECG Detects ordered R-wave occurrence times from a sampled ECG signal and exposes intermediate processing signals for plotting and debugging.
Slope-range ECG-derived respiration ECG Estimates an ECG-derived respiration amplitude series from derivative ECG morphology around detected R waves.
Frequency-domain HRV metrics HRV Integrates conventional LF and HF powers or respiration-separated OSP powers on an authoritative frequency grid.
Missing-event gap filling HRV Reconstructs missing event timestamps by iteratively interpolating intervals inside locally detected gaps.
Integral pulse frequency modulation heart-timing reconstruction HRV Estimates uniformly sampled instantaneous heart rate and an optional TVIPFM autonomic modulating signal from event times.
Respiration-related HRV decomposition by orthogonal subspace projection HRV Separates a uniformly sampled HRV modulating signal into a component linearly related to respiration and an orthogonal residual.
False-positive event removal HRV Removes detections that follow abnormally short event-to-event intervals using a fixed adaptive-baseline rule.
Time-domain beat or pulse variability metrics HRV Computes standard time-domain HRV metrics from cleaned beat-to-beat or pulse-to-pulse intervals.
Detect artifacts using Hjorth descriptors PPG Compares windowed Hjorth descriptors with local median baselines and merges detected sample intervals.
Delineate PPG pulse fiducials PPG Locates apex, basal, mid-amplitude and optional derivative-based onset times for each pulse detection.
Detect pulse maximum upslopes PPG Detects and refines pulse maximum-upslopes in a PPG derivative using a continuously adapted threshold.
Estimate PPG pulse envelopes PPG Interpolate lower and upper envelopes between basal and apex fiducials on the PPG time grid.
Estimate respiratory amplitude per cycle RESP Estimate each peak-to-following-valley amplitude and interpolate it at the cycle midpoint on the respiratory sample grid.
Expand NaN gaps by a time radius TOOLS Marks samples near original missing samples as NaN while preserving signal alignment.
Find repeated adjacent values TOOLS Locates maximal runs of at least two equal adjacent samples.
Compute Hjorth descriptors TOOLS Returns mean signal power, mobility, and a frequency-spread descriptor from finite differences.
Interpolate short NaN gaps TOOLS Reconstructs short internal missing spans using original neighboring samples.
Classify spectral peakedness TOOLS Tests both spectral peakedness measures against inclusive percentage thresholds.
Find the highest local maximum TOOLS Returns one peak value and position per signal along the search axis.
Low-pass differentiator filter design TOOLS Designs a low-pass differentiating FIR filter and reports its linear-phase delay.
Median-filtered adaptive threshold TOOLS Computes a capped adaptive threshold from a one-dimensional signal using median-filter-based local baseline estimation.
Causal filtering with NaN-aware gap handling TOOLS Applies ordinary causal filtering while interpolating short NaN gaps and preserving long NaN gaps.
Zero-phase filtering with NaN-aware gap handling TOOLS Applies ordinary zero-phase filtering while interpolating short NaN gaps and preserving long NaN gaps.
Estimate PSD across NaN gaps TOOLS Averages window periodograms within independent valid signal stretches.
Spectral peakedness TOOLS Measures narrow-band concentration and relative maximum height around a reference frequency.
Slice a signal into windows TOOLS Extracts equally spaced, optionally overlapping windows from a sampled signal.
Snap detections to local maxima TOOLS Refines detection sample positions by moving each detection to the maximum signal sample in a NaN-aware local search window.
Trim boundary NaN samples TOOLS Removes leading and trailing NaN samples while preserving internal missing samples.