Permalink
Newer
Older
100644 49 lines (45 sloc) 2.1 KB
Apr 24, 2014 @miscco Cleanup. Made comments line save
1 /*
Nov 9, 2015 @miscco Updated the code with correct license.
2 * Copyright (c) 2015 University of Lübeck
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 *
22 * AUTHORS: Michael Schellenberger Costa: mschellenbergercosta@gmail.com
23 *
24 * Based on: A thalamocortical neural mass model of the EEG during NREM sleep and its response
25 * to auditory stimulation.
26 * M Schellenberger Costa, A Weigenand, H-VV Ngo, L Marshall, J Born, T Martinetz,
27 * JC Claussen.
Sep 13, 2016 @miscco Major cleanup and moderinization
28 * PLoS Computational Biology http://dx.doi.org/10.1371/journal.pcbi.1005022
Nov 9, 2015 @miscco Updated the code with correct license.
29 */
Apr 24, 2014 @miscco Cleanup. Made comments line save
30
Sep 13, 2016 @miscco Major cleanup and moderinization
31 /******************************************************************************/
32 /* Functions for SRK iteration */
33 /******************************************************************************/
Mar 10, 2014 @miscco First modular implementation of the thalamo-cortical model.
34 #pragma once
Mar 1, 2014 @miscco New implementation of the thalamo-cortical model
35 #include "Cortical_Column.h"
36 #include "Thalamic_Column.h"
Mar 10, 2014 @miscco First modular implementation of the thalamo-cortical model.
37
Feb 1, 2016 @miscco Switched to the random_stream header for RNGs and updated the naming …
38 void ODE(Cortical_Column& Cortex, Thalamic_Column& Thalamus) {
Sep 13, 2016 @miscco Major cleanup and moderinization
39 /* First calculate every ith RK moment. Has to be in order, 1th moment first */
40 for (unsigned i=0; i<4; ++i) {
41 Cortex.set_RK(i);
42 Thalamus.set_RK(i);
43 }
Apr 24, 2014 @miscco Cleanup. Made comments line save
44
Sep 13, 2016 @miscco Major cleanup and moderinization
45 /* Add all moments */
46 Cortex.add_RK();
47 Thalamus.add_RK();
Mar 10, 2014 @miscco First modular implementation of the thalamo-cortical model.
48 }