Skip to main content

A multiple-tau algorithm for Python/NumPy.

Project description

PyPI Version Build Status Coverage Status

Multipe-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.6+ 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

A full code reference including examples is available here.

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.1.4'

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.1.7.tar.gz (40.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: multipletau-0.1.7.tar.gz
  • Upload date:
  • Size: 40.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for multipletau-0.1.7.tar.gz
Algorithm Hash digest
SHA256 67c537f1fcb866593aa9a5112dc004631d9eb5e911f93af7d7ab5b1a4a6d9de6
MD5 74503d0daf7bcf7d218107c430d5f94e
BLAKE2b-256 3bb9bba77a689941449b1e920c5479f9e280ff1dc8215167ed449f17ab48b3fb

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