Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pycorrelate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pycorrelate

Fast and accurate timestamps correlation in python.

  • 0.3
  • PyPI
  • Socket score

Maintainers
1

=========== Pycorrelate

.. image:: https://img.shields.io/pypi/v/pycorrelate.svg :target: https://pypi.python.org/pypi/pycorrelate

.. image:: https://img.shields.io/travis/tritemio/pycorrelate.svg :target: https://travis-ci.org/tritemio/pycorrelate

.. image:: https://ci.appveyor.com/api/projects/status/dcanybpqi2o1ecwi/branch/master?svg=true :target: https://ci.appveyor.com/project/tritemio/pycorrelate/branch/master

.. image:: https://readthedocs.org/projects/pycorrelate/badge/?version=latest :target: https://pycorrelate.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

Pycorrelate computes fast and accurate cross-correlation over arbitrary time lags. Cross-correlations can be calculated on "uniformly-sampled" signals or on "point-processes", such as photon timestamps. Pycorrelate allows computing cross-correlation at log-spaced lags covering several orders of magnitude. This type of cross-correlation is commonly used in physics or biophysics for techniques such as fluorescence correlation spectroscopy (FCS <https://en.wikipedia.org/wiki/Fluorescence_correlation_spectroscopy>) or dynamic light scattering (DLS <https://en.wikipedia.org/wiki/Dynamic_light_scattering>).

Two types of correlations are implemented:

  • ucorrelate <https://pycorrelate.readthedocs.io/en/latest/api.html#pycorrelate.pycorrelate.ucorrelate>: the classical text-book linear cross-correlation between two signals defined at uniformly spaced intervals. Only positive lags are computed and a max lag can be specified. Thanks to the limit in the computed lags, this function can be much faster than numpy.correlate <https://docs.scipy.org/doc/numpy/reference/generated/numpy.correlate.html#numpy.correlate>.

  • pcorrelate <https://pycorrelate.readthedocs.io/en/latest/api.html#pycorrelate.pycorrelate.pcorrelate>: cross-correlation of discrete events in a point-process. In this case input arrays can be timestamps or positions of "events", for example photon arrival times. This function implements the algorithm in Laurence et al. Optics Letters (2006) <https://doi.org/10.1364/OL.31.000829>. This is a generalization of the multi-tau algorithm which retains high execution speed while allowing arbitrary time-lag bins.

Pycorrelate is implemented in Python 3 and operates on standard numpy arrays. Execution speed is optimized using numba <https://numba.pydata.org/>__.

======= History

0.2.1 (2017-11-15)

  • Added normalization for FCS curves (see pnormalize <http://pycorrelate.readthedocs.io/en/latest/api.html#pycorrelate.pycorrelate.pnormalize>__).
  • Added example notebook showing how to fit a simple FCS curve
  • Renamed ucorrelate <http://pycorrelate.readthedocs.io/en/latest/api.html#pycorrelate.pycorrelate.ucorrelate>__ argument from maxlags to maxlag.
  • Added theory page <http://pycorrelate.readthedocs.io/en/latest/theory.html>__ in the documentation, showing the exact formula used for CCF calculations.

0.1.0 (2017-07-23)

  • First release on PyPI.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc