This repository contains all code that is part of the ECG synchrony multiverse study.
Conceptual texts about algorithms.
HRV simulation based inter-beat interval sequence generation, semi-random physiology-based parameter picking.
Optimized python transcript of Drew Abbney's RSA synchrony algorithm.
Machine learning algorithm for predicting parameters of the IBI_Generator that lead to high synchrony scores in RSA_Drew
Each package is a standalone working unit but ML requires code from IBI_Generator and RSA_Drew. Whenever the latter packages are changed, they must be built and re-installed in the ML package.
In the directories IBI_Generator or RSA_Drew, run python setup.py sdist bdist_wheel
(with venv deactivated).
The functions to be included in the build are defined in __init__.py
(in the package directories of IBI_Generator and RSA_Drew)
In the ML package, install the builds of the other packages using pip install ../RSA_Drew/dist/rsa_drew-<VERSION>-py3-none-any.whl [--force-reinstall]
(for example)
GNU Octave can be used for convolution results that are numerically closer to MATLAB. If desired, make sure Octave is locally installed.