Metadata-Version: 2.4
Name: edgeofpy
Version: 0.1.0
Summary: Tools for brain criticality estimation, especially for M/EEG
License-Expression: Apache-2.0
License-File: LICENSE
Author: Jordan O'Byrne
Author-email: jordan.obyrne@gmail.com
Requires-Python: >=3.10
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Provides-Extra: test
Requires-Dist: matplotlib (>=3.5)
Requires-Dist: numpy (>=1.22)
Requires-Dist: powerlaw (>=1.5)
Requires-Dist: pytest (>=7) ; extra == "test"
Requires-Dist: pytest-cov ; extra == "test"
Requires-Dist: scipy (>=1.7)
Project-URL: Changelog, https://github.com/jnobyrne/edgeofpy/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/jnobyrne/edgeofpy/issues
Project-URL: Repository, https://github.com/jnobyrne/edgeofpy
Description-Content-Type: text/x-rst

**Development Status:** 3 - Alpha. Some features still need to be added and tested.

==========
EDGE OF PY
==========

Package for assessing the distance to criticality in brain dynamics.

Features
--------
- Avalanche criticality measures
    - Avalanche detection
    - Avalanche distribution plotting
    - Power-law fitting (via `powerlaw <https://github.com/jeffalstott/powerlaw>`_)
    - Deviation from criticality coefficient (DCC)
    - Shape collapse error
    - Avalanche repertoire size and diversity
    - Branching ratios
    - Susceptibility
    - Fano factor

- Edge of chaos measures
    - 0-1 chaos test
    - Lambda max (Dahmen et al., 2019)

- Edge of synchrony measures
    - Pair correlation function (PCF)
    - Phase lag index (PLI)
    - Phase lag entropy (PLE)
    - Global lability of synchronization (GLS)
    - Phase-locking avalanche detection

- Ising model functions
    - Fitting the spin-glass model by pseudo-likelihood maximization
    - SK phase diagram inference (Ezaki et al., 2020)
    - Metropolis-Hastings algorithm
    - Heavy-tailed phase diagram inference
    - Ising energy
    - Specific heat
    - Energy landscape sample


Installation
------------
Install edgeofpy by running:

    pip3 install edgeofpy

Documentation
-------------
Coming soon.

Requirements
------------
- Python 3.10 or later
- numpy >= 1.22
- scipy >= 1.7
- matplotlib >= 3.5
- powerlaw >= 1.5

License
-------
The project is licensed under the Apache 2.0 license.

