This documentation is for astroML version 0.2

This page


astroML Mailing List

GitHub Issue Tracker


Scipy 2012 (15 minute talk)

Scipy 2013 (20 minute talk)


If you use the software, please consider citing astroML. astroML.time_series.multiterm_periodogram

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

Perform a multiterm periodogram at each omega

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

Parameters :

t : array_like

sequence of times

y : array_like

sequence of observations

dy : array_like

sequence of observational errors

omega : float or array_like

frequencies at which to evaluate p(omega)

Returns :

power : ndarray

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