Learn R Programming

spectral (version 2.0)

gLmb: generalized Lomb-Scargle estimation function

Description

calculates the generalized Lomb-Scargle estimation after Zechmeister et al. (2009)

Usage

gLmb(f, dat, w, Y, hYY)

Arguments

f

frequency

dat

spatial vector including locations and values

w

vector of weights

Y

weighted sum of values

hYY

weighted sum of squared values

Details

This method is based on the generalized approach

\(y(t) = a*cos(w*t) + b*sin(w*t) + c\)

which contains the floating average value \(c\) of the model function above. The calculation is vectorized to enhance calculation speed.