11.5.2.2. astroML.time_series.ACF_EK

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

Auto-correlation function via the Edelson-Krolik method

Parameters
tarray_like

times of observation. Assumed to be in increasing order.

yarray_like

values of each observation. Should be same shape as t

dyfloat or array_like

errors in each observation.

binsint 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
ACFndarray

The auto-correlation function and associated times

errndarray

the error in the ACF

binsndarray

bin edges used in computation