Closed joshbriegal closed 3 years ago
e.g. from other code base. To prevent spuriously short periods based on sampling.
def calculate_periodogram(self) -> Periodogram: min_timestamp_diff = np.min(np.diff(self.data.timeseries)) maximum_frequency = 1.0 / (self.params.nyquist_factor * min_timestamp_diff) return Periodogram( *self.lomb_scargle.autopower(maximum_frequency=maximum_frequency) )
e.g. from other code base. To prevent spuriously short periods based on sampling.