11.5.1.3. astroML.time_series.multiterm_periodogram

astroML.time_series.multiterm_periodogram(t, y, dy, omega, n_terms=3)[source]

Deprecated since version 0.4: The multiterm_periodogram function is deprecated and may be removed in a future version. Use astropy.stats.LombScargle instead.

Perform a multiterm periodogram at each omega

This calculates the chi2 for the best-fit least-squares solution for each frequency omega.

Parameters
tarray_like

sequence of times

yarray_like

sequence of observations

dyarray_like

sequence of observational errors

omegafloat or array_like

frequencies at which to evaluate p(omega)

Returns
powerndarray

P = 1. - chi2 / chi2_0 where chi2_0 is the chi-square for a simple mean fit to the data