test7.cpp File Reference


Detailed Description

Test of jump features.

This test uses a default NeuralBalloonModel with a driving neural activity function $u(t)$ consisting of a 1 s long burst of activity followed by no activity. The model is simulated for 60s, then reset to its state at the 5s mark and simulated again for the remaining time. The idea is to ensure that use of setState() and setTime() achieve consistent results with running the model from time zero.

Results are output into files results/test7.out and results/test7_repeat.out, tab delimited, with columns representing:

Results are as follows:

test7.png

Results

The original simulation is plotted with a dotted line in each case. Starting from the 5s mark, the repeated simulation is plotted with a solid line, which should exactly overlay the dotted line for the remainder of the simulation.

Definition in file test7.cpp.

Go to the source code of this file.

Functions

double U (double t, const double y[], void *o)
 $u(t)$; 1 for 1 s, then 0.
int main (int argc, const char *argv[])
 Run tests.

Variables

static const double END = 60.0
 Duration of simulation (s).
static const double JUMP = 5.0


Function Documentation

int main ( int  argc,
const char *  argv[] 
)

Run tests.

Definition at line 74 of file test7.cpp.

double U ( double  t,
const double  y[],
void *  o 
)

$u(t)$; 1 for 1 s, then 0.

Definition at line 61 of file test7.cpp.


Variable Documentation

const double END = 60.0 [static]

Duration of simulation (s).

Definition at line 55 of file test7.cpp.


Generated on Mon Aug 13 19:51:39 2007 for fmrii Hemodynamic Models Test Suite by  doxygen 1.5.2