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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file acor-1.1.1.tar.gz.
File metadata
- Download URL: acor-1.1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c647d30326004cfcfbcf630e97586ce574954e36bebf75b657d33d5d79e94e3
|
|
| MD5 |
8681b949f50e0f9a02bfbd15f7a3d56c
|
|
| BLAKE2b-256 |
d7632f696a862e1687bd14a30b7319ec3fbe02ba78f80af43c32e999d0e7435a
|