Calculation of:
- The Sleep Regularity Index (SRI), as originally described by Phillips et al:
- The Sleep Midpoint, as originally described by Lunsford-Avery et al:
If you have used this code in a scientific publication, we would appreciate citations to the following paper: https://www.nature.com/articles/s41598-018-32402-5
sri_from_csv.py can be used at the command line, and example.ipynb provides an example illustrating how to use the code.