Skip to main content

A multiple-tau algorithm for Python/NumPy

Project description

PyPI Version Tests Status Coverage Status Docs Status

Multiple-tau correlation is computed on a logarithmic scale (less data points are computed) and is thus much faster than conventional correlation on a linear scale such as numpy.correlate.

Installation

Multipletau supports Python 2.7 and Python 3.3+ with a common codebase. The only requirement for multipletau is NumPy (for fast operations on arrays). Install multipletau from the Python package index:

pip install multipletau

Documentation

The documentation, including the reference and examples, is available on readthedocs.io.

Usage

import numpy as np
import multipletau
a = np.linspace(2,5,42)
v = np.linspace(1,6,42)
multipletau.correlate(a, v, m=2)
array([[   0.        ,  569.56097561],
       [   1.        ,  549.87804878],
       [   2.        ,  530.37477692],
       [   4.        ,  491.85812017],
       [   8.        ,  386.39500297]])

Citing

The multipletau package should be cited like this (replace “x.x.x” with the actual version of multipletau that you used and “DD Month YYYY” with a matching date).

Paul Müller (2012) Python multiple-tau algorithm (Version x.x.x) [Computer program]. Available at https://pypi.python.org/pypi/multipletau/ (Accessed DD Month YYYY)

You can find out what version you are using by typing (in a Python console):

>>> import multipletau
>>> multipletau.__version__
'0.4.0'

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

multipletau-0.4.0.tar.gz (94.9 kB view details)

Uploaded Source

Built Distribution

multipletau-0.4.0-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file multipletau-0.4.0.tar.gz.

File metadata

  • Download URL: multipletau-0.4.0.tar.gz
  • Upload date:
  • Size: 94.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for multipletau-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1f2291c262393bede67ba7289d73a43da4060f39bb46cb2a5bf3a910a408677a
MD5 95ed59267efd9759e4ee28ba46388908
BLAKE2b-256 4da97914ab278d1ad48861862fd36e51c3caa9bbbb9171b5ed8c7196a70716d6

See more details on using hashes here.

File details

Details for the file multipletau-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for multipletau-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9f8da3f64b308039803237995d248595f46627c76c8fed0061f18d5e42c9e301
MD5 93b59cf84393ce4c0046f70aaed62b05
BLAKE2b-256 f942bba16fc474d3c59e4f210df02e3614c8dd355f5c31bf972bb49d68a65111

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