
Extract respiration proxy using a CEEMDAN-style bridge
Source:R/respiration-ceemdan-kalman.R
extract_gazepoint_respiration_ceemdan.RdExtracts respiration-like components from PPG or ECG-derived respiratory
proxy signals. If external_fun is supplied, it is used as the CEEMDAN
backend. Otherwise, the function uses a dependency-light multiscale
decomposition fallback and labels the result accordingly.
Arguments
- dat
A data frame.
- signal_col
Numeric PPG/ECG-derived signal column.
- time_col
Numeric time column.
- group_cols
Optional grouping columns.
- sampling_rate
Optional sampling rate in Hz.
- respiration_band
Frequency band in Hz used to select respiration-like components.
- scales
Moving-average scales used by the fallback decomposition.
- external_fun
Optional function with arguments
x,time, andsampling_rate, returning either a numeric vector or a list/data frame of components.