Skip to main content

Estimate the autocorrelation time of a time series quickly.

Project description

This is a direct port of a C++ routine by Jonathan Goodman (NYU) called ACOR that estimates the autocorrelation time of time series data very quickly.

Dan Foreman-Mackey (NYU) made a few surface changes to the interface in order to write a Python wrapper (with the permission of the original author).

Installation

Just run

pip install acor

with sudo if you really need it.

Otherwise, download the source code as a tarball or clone the git repository from GitHub:

git clone https://github.com/dfm/acor.git

Then run

cd acor
python setup.py install

to compile and install the module acor in your Python path. The only dependency is NumPy (including the python-dev and python-numpy-dev packages which you might have to install separately on some systems).

Usage

Given some time series x, you can estimate the autocorrelation time (tau) using:

import acor
tau, mean, sigma = acor.acor(x)

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acor-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file acor-1.0.2.tar.gz.

File metadata

  • Download URL: acor-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for acor-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8cf00629df6fc0f8004b07192f48bc187c2adabb4382c6ad1c01a37f5366e8ff
MD5 a63e6673f60fcc1dc817800367a6b887
BLAKE2b-256 956f50b9ef78b9de8c45c66bf1980d097326d86f5b7cf79e21b226c21d7dde32

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page