Autocorrelation of a spectrum. Generally, a high autocorrelation is associated with high signal, while white noise is not autocorrelated.

spectral_ac(x, lag = 1, colname = "spectral_ac")

Arguments

x

a hyperSpec object.

lag

lag at which the autocorrelation is calculated.

colname

name of the data column to be added to x@data, containing the autocorrelation coefficient.

Value

a hyperSpec object such as given for x with an additional column in x@data.