SpectrumEstimate.periods#

SpectrumEstimate.periods()[source]#

Each grid frequency as a period in observations per cycle, zero mapping to infinity.

Return type:

NDArray[double]

Returns:

(n,) periods 2 pi / omega, inf at the origin.

Example

>>> rng = np.random.default_rng(0)
>>> est = DaniellSpectrum(rng.standard_normal(64)).compute()
>>> est.periods()[[0, 1, 2, -1]].tolist()
[inf, 64.0, 32.0, 2.0]