lomb_scargle(t, y, dy, omega, generalized=True, subtract_mean=True, significance=None)¶
Deprecated since version 0.4: The lomb_scargle function is deprecated and may be removed in a future version. Use astropy.stats.LombScargle instead.
(Generalized) Lomb-Scargle Periodogram with Floating Mean
sequence of times
sequence of observations
sequence of observational errors
frequencies at which to evaluate p(omega)
if True (default) use generalized lomb-scargle method otherwise, use classic lomb-scargle.
if True (default) subtract the sample mean from the data before computing the periodogram. Only referenced if generalized is False
- significanceNone or float or ndarray
if specified, then this is a list of significances to compute for the results.
Lomb-Scargle power associated with each frequency omega
if significance is specified, this gives the levels corresponding to the desired significance (using the Scargle 1982 formalism)
The algorithm is based on reference . The result for generalized=False is given by equation 4 of this work, while the result for generalized=True is given by equation 20.
To recover the normalization used in Scargle , the results should be multiplied by (N - 1) / 2 where N is the number of data points.