Skip to main content

Estimate the autocorrelation time of a time series quickly.

Project description

This is an updated, maintained fork of the original acor package. Below is the original README with the appropriate changes to the name and source locations.

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 encor

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/davecwright3/acor.git

Then run

cd acor
python -m pip 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

encor-1.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

encor-1.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (14.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

File details

Details for the file encor-1.1.2.tar.gz.

File metadata

  • Download URL: encor-1.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for encor-1.1.2.tar.gz
Algorithm Hash digest
SHA256 ab1dd9eeb9e9801816b3c59f8e5bd7d23e5d787387685051ead419818d435e40
MD5 b179e2816757afa8e3c8ab7a6715ef34
BLAKE2b-256 b3d78f73e53cc9e17a528b73119bc5c832da85c5f6ed022c4110e48e00a7f761

See more details on using hashes here.

File details

Details for the file encor-1.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for encor-1.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 59da5f065d18748453ad91ac1069e2480e16694af17002eda8230240b7f51bf6
MD5 b5c0a4b181908085bd9f39dc21858e7a
BLAKE2b-256 c433b9b516cbc07a3db91478f94cce1e2adc876c10a8cb6b05dcca21beb47a03

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