Observed since 21 Oct, 09:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Synchrony index between time series based on Agmon's paper
Compute the jitter-based synchrony index between time series described in Agmon's paper [1].
SI, pval, Nc = synchrony_index(timeseries, tau, Nc_max_exact=1000)
Let's consider two time series with 4 and 2 samples respectively. We are looking for coincidences within a maximum delay of 0.1:
from agmonsynchrony import synchrony_index
ts1 = [1, 2, 3, 4]
ts2 = [2.03, 3.95]
SI, pval, Nc = synchrony_index([ts1, ts2], tau=0.1)
The number of observed coincidences is:
>> print(Nc)
[[4 2]
[2 2]]
The matrix of synchrony indices is:
>> print(SI)
[[1. 1.]
[0.5 1.]]
The diagonal is 1 because time series are synchronized with themselves. The lower left value is 0.5 because when the time series 'ts2' is taken as a reference, only half of the samples of the time series 'ts1' are within 'tau' of a sample of 'ts2'. Therefore, the matrix is not symmetric.
The package can be installed using the command pip install agmonsynchrony (on Windows, a compiler such as Microsoft Visual C++ is required).
If the code is downloaded from github, local installation on Linux is done by running make local and including the directory 'agmonsynchrony' in the PYTHONPATH environment variable.
Tested using Anaconda 2023.09 (python 3.11) on Linux and Windows.
This work was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC grant RGPIN-2020-05252).
A. Agmon. A novel, jitter-based method for detecting and measuring spike synchrony and quantifying temporal firing precision. Neural Syst. Circuits 2012, vol. 2, article 5.
J.-P. Longpré, S. Salavatian, E. Beaumont, J. A. Armour, J. L. Ardell, V. Jacquemet. Measure of synchrony in the activity of intrinsic cardiac neurons. Physiol Meas. 2014, vol. 35, no. 4, pp. 549–566.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 11 Jul 2024 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1acceedab75e8b8255f005550a8828115bb87ad82efb101e07b2e03007e3c8f2