Debian Codegraph @

multipletau/__init__.py

raw symbols SCIP
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 u"""
4 Multipletau provides a multiple-τ algorithm Python 3.x with
5 :py:mod:`numpy` as its sole dependency.
6
7 Multiple-τ correlation is computed on a logarithmic scale (less
8 data points are computed) and is thus much faster than conventional
9 correlation on a linear scale such as :py:func:`numpy.correlate`.
10
11 Recommended literature
12 ----------------------
13
14 - Klaus Schaetzel and Rainer Peters; *Noise on multiple-tau photon
15 correlation data*. Proc. SPIE 1430, Photon Correlation
16 Spectroscopy: Multicomponent Systems, 109 (June 1, 1991);
17 http://doi.org/10.1117/12.44160
18
19 - Thorsten Wohland, Rudolf Rigler, and Horst Vogel; *The Standard
20 Deviation in Fluorescence Correlation Spectroscopy*. Biophysical
21 Journal, 80 (June 1, 2001);
22 http://dx.doi.org/10.1016/S0006-3495(01)76264-9
23
24 Obtaining multipletau
25 ---------------------
26 If you have Python and :py:mod:`numpy` installed, simply run::
27
28 pip install multipletau
29
30 The source code of multipletau is available at
31 https://github.com/FCS-analysis/multipletau.
32
33
34 Citing multipletau
35 ------------------
36 The multipletau package should be cited like this (replace "x.x.x"
37 with the actual version of multipletau used and "DD Month YYYY"
38 with a matching date).
39
40 .. topic:: cite
41
42 Paul Müller (2012) *Python multiple-tau algorithm* (Version x.x.x)
43 [Computer program].
44 Available at https://pypi.python.org/pypi/multipletau/
45 (Accessed DD Month YYYY)
46
47
48 You can find out what version you are using by typing
49 (in a Python console):
50
51
52 >>> import multipletau
53 >>> multipletau.__version__
54 '0.3.0'
55
56
57 Usage
58 -----
59 The package is straightforward to use. Here is a quick example:
60
61
62 >>> import numpy as np
63 >>> import multipletau
64 >>> a = np.linspace(2,5,42)
65 >>> v = np.linspace(1,6,42)
66 >>> multipletau.correlate(a, v, m=2)
67 array([[ 0. , 569.56097561],
68 [ 1. , 549.87804878],
69 [ 2. , 530.37477692],
70 [ 4. , 491.85812017],
71 [ 8. , 386.39500297]])
72
73 """
74 from .core import autocorrelate, correlate, correlate_numpy # noqa: F401
75 from ._version import __version__, __version_tuple__ # noqa: F401
76
77 __author__ = u"Paul Müller"
78 __license__ = "BSD (3 clause)"