signal_detrend function

Detrend a signal vector.

Detrend a signal vector.

The function removes a trend from a signal vector.

signal_detrend(data, method = "linear")

Arguments

  • data: eseis object, numeric vector or list of objects, data set to be processed.
  • method: Character value, method used for detrending. One out of "simple" and "linear". Default is "linear".

Returns

Numeric vector or list of vectors, detrended data set.

Details

The method "simple" subtracts a linear trend built from the first and last sample of the data set. The method "linear"

uses the linear function as implemented in pracma::detrend.

Examples

## load example data set data(rockfall) ## remove linear trend from data set rockfall_detrend <- signal_detrend(data = rockfall_eseis) ## compare data ranges range(rockfall_eseis$signal) range(rockfall_detrend$signal)

Author(s)

Michael Dietze

  • Maintainer: Michael Dietze
  • License: GPL-3
  • Last published: 2025-03-25

Useful links