Skip to content

API

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

Package

Function Description
version Return the installed Biosigmat implementation version.

ECG

Function Description
baselineremove Removes baseline wander from biosignals using cubic spline interpolation.
pantompkins Algorithm for R-wave detection in ECG signals.
sloperange Compute ECG-derived respiration (EDR) using slope range method.

HRV

Function Description
fdmetrics Compute standard frequency-domain indices for heart rate variability analysis.
fillgaps Reconstruct missing events inside locally detected gaps.
ipfm Estimate instantaneous heart rate using the integral pulse frequency modulation model.
osp Decompose the HRV modulating signal into respiratory and unrelated components.
removefp Remove false positive detections from HRV event series.
tdmetrics Compute time-domain HRV metrics from interval series.

PPG

Function Description
hjorthArtifacts Detects artifacts in physiological signals using Hjorth parameters.
pulsedelineation Performs pulse delineation in PPG signals using adaptive thresholding.
pulsedetection Pulse detection in LPD-filtered PPG signals using configurable algorithms.
pulseenvelopes Estimates lower and upper PPG envelopes using pulse-anchored interpolation.

Respiration

Function Description
tidalvolume Extracts upper and lower peak envelopes from a signal.

Tools

Function Description
expandnans Expands NaN segments by a time window.
findsequences Find sequences of repeated (adjacent/consecutive) numeric values.
hjorth Computes Hjorth parameters (activity, mobility, and complexity) from a signal.
interpgap Interpolate small NaN gaps in a signal.
ispeaky Determines if spectra are considered peaky based on peakedness thresholds.
localmax Finds local maxima in matrix rows or columns.
lpdfilter Low-pass derivative filter.
medfiltThreshold Compute median-filtered adaptive threshold.
nanfilter Implements filter function with support for NaN values.
nanfiltfilt Implements filtfilt function with support for NaN values.
nanpwelch Compute Welch periodogram when signal has NaN segments.
peakedness Computes the peakedness of power spectral density estimates.
slicesignal Divide signal into overlapping segments.
slider Creates and adds a scroll slider to a figure with time-based plots.
snaptopeak Refine QRS detections by snapping to local maxima.
trimnans Trim NaN values from the beginning and end of a signal.