popsynch (Quantifying Population Synchrony)
This Python module implements routines for computing a measure of population synchrony in compact metric spaces, as defined in [1]. Let $(M,d)$ be a compact metric space, and let $\pi \in \mathcal{P}(M)$ be a probability measure representing the distribution of a population over $M$. Then the synchrony of $\pi$ is defined to be $$ F(\pi) = 1 - \frac{1}{\nu_{(M,d)}} \inf_{\alpha \in M} \left(\int_{M} d(x,\alpha)^2 d\pi(x) \right)^{1/2}, $$ where the synchrony normalization constant $$ \nu_{(M,d)} = \sup_{\mu \in \mathcal{P}(M)} \inf_{\alpha \in M} \left(\int_{M} d(x,\alpha)^2 d\mu(x) \right)^{1/2}. $$
This module currently implements routines to compute the synchrony normalization constant of any finite metric space, and synchrony of distributions on finite metric spaces, empirical distributions on the circle, and empirical distributions on rectangular parallelepipeds and compact balls in Euclidean space.
Installing popsynch
This module requires Python 3 (tested on Python>=3.12) and on NumPy and SciPy, which will be automatically installed with popsynch.
This module can be installed using pip and a local clone of the associated repository
$ git clone git@gitlab.com:biochron/popsynch.git
$ cd popsynch
$ pip install .
or through the Python Package Index (PyPI):
$ pip install popsynch
Examples
Jupyter notebooks that show the functionality of the methods in this module can be found in examples/.
The example notebooks additionally require Jupyter, Pandas, and Matplotlib, which can be installed with the command
$ pip install popsynch[notebooks]
Author
- Francis C. Motta (fmotta@fau.edu)
Citations
[1] Motta, F.C., McGoff, K., Cummins, B., Haase, S.B., (2024). Generalized Measures of Population Synchrony. (https://arxiv.org/abs/2406.15987)
Metadata
Release files for popsynch 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| popsynch-0.4.tar.gz | 8.5 kB | Without provenance | Details for popsynch-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| popsynch-0.4-py3-none-any.whl | Python 3 | none | any | Details for popsynch-0.4-py3-none-any.whl |
Total release size: 16.7 kB
Release files / popsynch-0.4.tar.gz
| Download URL | popsynch-0.4.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b05cbf11ce65843ab32b573fcb329418192800f934186b986c25cb7f4a900ce
|
|
BLAKE2b-256 checksum How to use checksums |
7ab158fe047df417e0a0482fe04815e3c3195edd3e1a10d15050e95e1b15addd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|
Release files / popsynch-0.4-py3-none-any.whl
| Download URL | popsynch-0.4-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4482edfb818c651528cda904ece9bc10d17f8e0b2d7c61fcd7d3a7ccbca9f77a
|
|
BLAKE2b-256 checksum How to use checksums |
c72d7642665128b8a85bc322d9c145ff61c62521ffa845905b60695b6538dbf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|
Security for popsynch 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.