Learn R Programming

eseis (version 0.8.0)

signal_whiten: Perform spectral whitening of a signal vector

Description

The function normalises the input signal within a given frequency window. If a time series is provided, it is converted to the spectral domain, whitening is performed, and it is transformed back to the time domain.

Usage

signal_whiten(data, f, dt)

Value

Numeric vector or eseis object, whitened signal vector.

Arguments

data

eseis object, or complex vector, data set to be processed.

f

Numeric vector of length two, frequency window within which to normalise. If omitted, the entire bandwidth is normalised.

dt

Numeric value, sampling period. Only needed if the input object is not an eseis object

Author

Michael Dietze

Examples

Run this code

## load example data set
data("rockfall")

## whiten data set between 10 and 30 Hz
rockfall_2 <- signal_whiten(data = rockfall_eseis, 
                            f = c(10, 30))
                            
## plot whitened data set
plot(rockfall_2)

Run the code above in your browser using DataLab