Skip to main content

lomb_scargle

Function lomb_scargle 

Source
pub fn lomb_scargle(
    times: &[Seconds],
    values: &[f64],
    frequencies: &[Hz],
) -> Vec<f64>
Expand description

The periodogram of values at times, one power per frequency.

Each trial fits a mean, a sine and a cosine to the samples together: the floating-mean form of Zechmeister and Kürster, the floating_mean=True option of scipy.signal.lombscargle. The plain form subtracts the overall mean first, and on gated notes a rate at the note rate then loses to its harmonics. The power is in the legacy units A^2 N / 4 for a sine of amplitude A over N samples, and a constant offset changes nothing.