signal_whiten {eseis}R Documentation

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)

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

Value

Numeric vector or eseis object, whitened signal vector.

Author(s)

Michael Dietze

Examples


## 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)


[Package eseis version 0.7.3 Index]