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.ACF_EK

astroML.time_series.ACF_EK(t, y, dy, bins=20)

Auto-correlation function via the Edelson-Krolik method

Parameters :

t : array_like

times of observation. Assumed to be in increasing order.

y : array_like

values of each observation. Should be same shape as t

dy : float or array_like

errors in each observation.

bins : int or array_like (optional)

if integer, the number of bins to use in the analysis. if array, the (nbins + 1) bin edges. Default is bins=20.

Returns :

ACF : ndarray

The auto-correlation function and associated times

err : ndarray

the error in the ACF

bins : ndarray

bin edges used in computation