-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4be4354
Showing
25 changed files
with
2,888 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 990981d2d6449dcefbca3b44c94306e0 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Virtual Brain Inference (VBI) | ||
############################## | ||
|
||
|
||
Installation | ||
============ | ||
|
||
Requirements | ||
============ | ||
|
||
- Python3 | ||
- Matplotlib | ||
- Scipy | ||
- numpy | ||
- C++ >= 11 | ||
|
||
.. code-block:: bash | ||
conda env create --file environment.yml --name vbi | ||
conda activate vbi | ||
# gpu support | ||
# conda install -c conda-forge cupy cudatoolkit=11.3 | ||
# conda install -c conda-forge pytorch-gpu | ||
# If you need to use models implemented in C++ : | ||
cd vbi/CPPModels | ||
make | ||
# you need to install swig if you get an error and probably write the version of | ||
# python you are using at makefile | ||
PYTHON_VERSION = 3.8 # or whatever version you have | ||
`swig` need to be installed for using models implemented in C++ . | ||
|
||
.. code-block:: bash | ||
sudo apt-get install swig | ||
sudo apt-get install python3-dev # or [python3.9-dev] depends the default version of python on your machine. | ||
# unless you get an error which says: fatal error, Python.h not found. | ||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
|
||
Modules | ||
######## | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
neural_mass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
Damp Oscillator | ||
--------------- | ||
|
||
.. automodule:: vbi.models.cpp.damp_oscillator | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:inherited-members: | ||
|
||
Jansen-Rit Neural Mass Model | ||
---------------------------- | ||
|
||
.. math:: | ||
:nowrap: | ||
\begin{align*} | ||
\dot{y_0(t)} &= y_3(t) \\ | ||
\dot{y_1(t)} &= y_4(t) \\ | ||
\dot{y_2(t)} &= y_5(t) \\ | ||
\dot{y_3(t)} &= Aa\, \sigma(y_1(t)-y_2(t)) - 2ay_3(t) - a^2 y_0(t)\\ | ||
\dot{y_4(t)} &= Aa\Big[ P(t) +C_2 \, \sigma(C_1 y_0(t)) \Big] - 2a y_4(t) -a^2 y_1(t) \\ | ||
\dot{y_5(t)} &= Bb \Big[ C_4\, \sigma(C_3 y_0(t)) \Big] -2by_5(t) -b^2 y_2(t) \\ | ||
\sigma(v) &= \frac{v_{max}}{1+\exp(r(v_0-v))} \\ | ||
\end{align*} | ||
.. automodule:: vbi.models.cpp.jansen_rit | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:inherited-members: | ||
|
Oops, something went wrong.