View source: R/signal_spectrum.R
signal_spectrum | R Documentation |
The power spectral density estimate of the time series is calculated using different approaches.
signal_spectrum(data, dt, method = "periodogram", n, res, log = FALSE, ...)
data |
|
dt |
|
method |
|
n |
|
res |
|
log |
|
... |
Additional arguments passed to the function. |
If the res
option is used, the frequency and power vectors will be
interpolated using a spline interpolator, using equally spaced frequency
values. If desired, the additional option log = TRUE
can be used
to interpolate with log spaced frequency values.
Data frame
with frequency and power vector
Michael Dietze
## load example data set
data(rockfall)
## calculate spectrum with standard setup
s <- signal_spectrum(data = rockfall_eseis)
## plot spectrum
plot_spectrum(data = s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.