'Detrending' is often used before the signal power calculation.
Usage
detrend(x, trend = c("constant", "linear"), break_points = NULL)
Arguments
- x
numerical or complex, a vector or a matrix
- trend
the trend of the signal; choices are
'constant'
and'linear'
- break_points
integer vector, or
NULL
; only used whentrend
is'linear'
to remove piecewise linear trend; will throw warnings iftrend
is'constant'