Skip to content

Commit

Permalink
deploy: 77f1ab9
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziaeemehr committed Feb 28, 2024
0 parents commit 12ea7b3
Show file tree
Hide file tree
Showing 25 changed files with 2,888 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
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: 9aecb4d699aa62dc85e7ae39ef0e4aec
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/neural_mass.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
59 changes: 59 additions & 0 deletions _sources/index.rst.txt
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

33 changes: 33 additions & 0 deletions _sources/neural_mass.rst.txt
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:

Loading

0 comments on commit 12ea7b3

Please sign in to comment.