signal_spectrum: Calculate the spectrum of a time series
Description
The power spectral density estimate of the time series is calculated using
different approaches.
Usage
signal_spectrum(data, dt, method = "periodogram", n, ...)
Value
Data frame with frequency and power vector
Arguments
data
eseis object, numeric vector or list of
objects, data set to be processed.
dt
Numeric value, sampling period. If omitted, dt
is set to 1/200. Only needed if data is no eseis object.
method
Character value, calculation method. One out of
"periodogram" and "autoregressive".
default is "periodogram".
n
Numeric value, optional number of samples in
running window used for smoothing the spectrogram. Only applied if a
number is provided. Smoothing is performed as running mean.
## load example data setdata(rockfall)
## calculate spectrum with standard setups <- signal_spectrum(data = rockfall_eseis)
## plot spectrumplot_spectrum(data = s)