View source: R/signal_interpolate.R
signal_interpolate | R Documentation |
The signal vector data
is interpolated by an integer factor
n
. If an eseis
object is provided, the meta data is updated.
The function is a wrapper for the function interp
of the package
signal
. Note that interpolation does not create new meaningful
information but rather artefacts above the initial frequency range.
signal_interpolate(data, n, l = 4, ...)
data |
|
n |
|
l |
|
... |
further arguments passed to |
The function calls the function signal::interp
and wraps the output
into the eseis object structure. The ...-argument may contain the passed
argument Wc
(FIR filter cutoff frequency). Note that by convention
the argument n
of eseis::signal_interpolate
does not equal the
argument n
of signal::interp
. Rather this is the argument
l
that is passed as n
.
Interpolated data set.
Michael Dietze
## load example data set
data(rockfall)
## detrend data set
s <- signal_detrend(data = rockfall_eseis)
## interpolate by factor 2
s_int = signal_interpolate(data = s, n = 2)
## calculate and plot spectrogram
p_int = signal_spectrogram(data = s_int)
plot(p_int)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.