|
|
@@ -1,32 +1,32 @@ |
|
|
/*
|
|
|
-* Copyright (c) 2015 Michael Schellenberger Costa
|
|
|
-*
|
|
|
-* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
-* of this software and associated documentation files (the "Software"), to deal
|
|
|
-* in the Software without restriction, including without limitation the rights
|
|
|
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
-* copies of the Software, and to permit persons to whom the Software is
|
|
|
-* furnished to do so, subject to the following conditions:
|
|
|
-*
|
|
|
-* The above copyright notice and this permission notice shall be included in
|
|
|
-* all copies or substantial portions of the Software.
|
|
|
-*
|
|
|
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
-* THE SOFTWARE.
|
|
|
-*
|
|
|
-* AUTHORS: Michael Schellenberger Costa: mschellenbergercosta@gmail.com
|
|
|
-*
|
|
|
-* Based on: A thalamocortical neural mass model of the EEG during NREM sleep and its response
|
|
|
-* to auditory stimulation.
|
|
|
-* M Schellenberger Costa, A Weigenand, H-VV Ngo, L Marshall, J Born,
|
|
|
-* T Martinetz, JC Claussen.
|
|
|
-* PLoS Compuational Biology (in review)
|
|
|
-*/
|
|
|
+ * Copyright (c) 2015 University of Lübeck
|
|
|
+ *
|
|
|
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
+ * of this software and associated documentation files (the "Software"), to deal
|
|
|
+ * in the Software without restriction, including without limitation the rights
|
|
|
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
+ * copies of the Software, and to permit persons to whom the Software is
|
|
|
+ * furnished to do so, subject to the following conditions:
|
|
|
+ *
|
|
|
+ * The above copyright notice and this permission notice shall be included in
|
|
|
+ * all copies or substantial portions of the Software.
|
|
|
+ *
|
|
|
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
+ * THE SOFTWARE.
|
|
|
+ *
|
|
|
+ * AUTHORS: Michael Schellenberger Costa: mschellenbergercosta@gmail.com
|
|
|
+ *
|
|
|
+ * Based on: A thalamocortical neural mass model of the EEG during NREM sleep and its response
|
|
|
+ * to auditory stimulation.
|
|
|
+ * M Schellenberger Costa, A Weigenand, H-VV Ngo, L Marshall, J Born, T Martinetz,
|
|
|
+ * JC Claussen.
|
|
|
+ * PLoS Computational Biology In Review (in review).
|
|
|
+ */
|
|
|
|
|
|
/****************************************************************************************************/
|
|
|
/* Functions for data storage */
|
|
|
@@ -37,26 +37,11 @@ |
|
|
/****************************************************************************************************/
|
|
|
/* Save data */
|
|
|
/****************************************************************************************************/
|
|
|
-inline void get_data(int counter, Thalamic_Column& Col, double* Vt, double* Vr, double* ah) {
|
|
|
+void get_data(int counter, Thalamic_Column& Col, double* Vt, double* Vr, double* ah) {
|
|
|
Vt [counter] = Col.Vt [0];
|
|
|
Vr [counter] = Col.Vr [0];
|
|
|
ah [counter] = Col.act_h ();
|
|
|
}
|
|
|
/****************************************************************************************************/
|
|
|
/* end */
|
|
|
-/****************************************************************************************************/
|
|
|
-
|
|
|
-
|
|
|
-/****************************************************************************************************/
|
|
|
-/* Create MATLAB data container */
|
|
|
-/****************************************************************************************************/
|
|
|
-mxArray* SetMexArray(int N, int M) {
|
|
|
- mxArray* Array = mxCreateDoubleMatrix(0, 0, mxREAL);
|
|
|
- mxSetM(Array, N);
|
|
|
- mxSetN(Array, M);
|
|
|
- mxSetData(Array, mxMalloc(sizeof(double)*M*N));
|
|
|
- return Array;
|
|
|
-}
|
|
|
-/****************************************************************************************************/
|
|
|
-/* end */
|
|
|
-/****************************************************************************************************/
|
|
|
+/****************************************************************************************************/
|
0 comments on commit
a3bfdae