Skip to content

S-ACF: A selective estimator for the autocorrelation function of irregularly sampled time series

License

Notifications You must be signed in to change notification settings

joshbriegal/sacf

Repository files navigation

Python Test Status

Selective Estimator for the Autocorrelation Function

S-ACF: A selective estimator for the autocorrelation function of irregularly sampled time series (credit Lars Kreutzer, c++ implementation by Josh Briegal jtb34@cam.ac.uk)

The associated publication, which includes a detailed description of the S-ACF, can be found at arXiv:2304.10641.

Installation

Requirements:

From above top level directory run

pip install ./sacf

in python:

SACF follows Astropy LombScargle implementation:

from sacf import SACF

lag_timeseries, correlations = SACF(timeseries, values, errors=None).autocorrelation()

with options:

sacf.autocorrelation(max_lag=None, lag_resolution=None, selection_function='natural', weight_function='fast', alpha=None)

NOTE: If users specify selection_function="fast", weight_function="fractional_squared" or weight_function="gaussian", a python implementation of the SACF will be invoked which is considerably slower than the default C++ option.

Tests

From root directory run:

tox

About

S-ACF: A selective estimator for the autocorrelation function of irregularly sampled time series

Resources

License

Stars

Watchers

Forks

Packages

No packages published