calculates the generalized Lomb-Scargle estimation after Zechmeister et al. (2009)
gLmb(f, dat, w, Y, hYY)
frequency
spatial vector including locations and values
vector of weights
weighted sum of values
weighted sum of squared values
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.