R package for the Strang numerical splitting scheme of N populations of the Jansen-and-Rit neural mass models (JRNMM) proposed in Algorithm 2 in [1] S. Ditlevsen, M. Tamborrino, I. Tubikanec. Network Inference via Approximate Bayesian Computation. Illustration on a stochastic multi-population Neural Mass Model. Preprint at ArXiv: 2306.15787v2 https://arxiv.org/abs/2306.15787
The R-package is written and maintained by Massimiliano Tamborrino (firstname dot secondname at warwick.ac.uk).
In this package, we provide the codes for the simulation of trajectories from N populations of the JRNMM. Each population is a 6-dimensional SDE, so the process
The main routine is "fast_JRNMM_Splitting.R", which simulates trajectories of
The "JRNMM_Splitting" routine has the same inputs as "fast_JRNMM_Splitting.R" with the only difference of passing the entire diagonal matrices Gamma and Sigma instead of only the diagonal entries. This routine is not taking advantage of the fact that these matrices are diagonal, leading to higher runtimes. This routine is left here for illustration purposes, but the use of "fast_JRNMM_Splitting.R" is recommended.
- Tools/Install packages/ select the source folder *To update The simplest way is to do it via devtools, using devtools::install_github("massimilianotamborrino/StrangSplittingJRNMM")
Both routines return a 6NxM matrix, where the number of rows, 6N, corresponds to the 6N components of the N JRNMM populations, with M being the number of discrete-time points where the trajectories are evaluated, e.g., using equidistant points in