Removes the DC component (baseline offset) from EMG signals using various methods.
Arguments
- data
EMG signal. Can be a numeric vector (single channel), a matrix (T x M, time x channels), or a list of matrices.
- method
Method for DC removal:
"mean": Subtract the mean (default)"median": Subtract the median (robust to outliers"linear": Remove linear trend (detrend)"polynomial": Remove polynomial trend
- poly_order
Polynomial order when
method = "polynomial". Default is 1 (equivalent to linear detrending).