test1.cpp File Reference


Detailed Description

Basic test of FlowBalloonModel.

This test configures a FlowBalloonModel with parameters and functions set according to the first experiment in Buxton et al. (1998). Results are output on stdout, tab delimited, with columns representing:

Results are as follows:

test1.png

Results, c.f. Buxton et al. (1998), Figure 1

Definition in file test1.cpp.

Go to the source code of this file.

Namespaces

namespace  std
namespace  indii::fmri::hemodynamic
namespace  indii::ml::ode

Functions

double F_IN (double t, const double y[], void *o)
 $f_{in}(t)$; Trapezoidal function with a rise time of 4 s, duration of 4 s and fall time of 4 s.
double F_OUT (double t, const double y[], void *o)
 $f_{out}(t) = \frac{7}{3}v - \frac{4}{3}$;
int main (int argc, const char *argv[])
 Run tests.

Variables

static const double TAU_0 = 2.0
 $\tau_0$
static const double E_0 = 0.4
 $E_0$
static const double V_0 = 0.01
 $V_0$
static const double ALPHA = 0.5
 $\alpha$
static const double END = 20.0
 Duration of simulation (s).


Function Documentation

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

$f_{in}(t)$; Trapezoidal function with a rise time of 4 s, duration of 4 s and fall time of 4 s.

Definition at line 65 of file test1.cpp.

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

$f_{out}(t) = \frac{7}{3}v - \frac{4}{3}$;

i.e. linear relative to $v$ with a gradient of $\frac{7}{3}$, $f_{out} = 1$ when $v = 1$.

Definition at line 85 of file test1.cpp.

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

Run tests.

Definition at line 92 of file test1.cpp.


Variable Documentation

const double ALPHA = 0.5 [static]

$\alpha$

Definition at line 54 of file test1.cpp.

const double E_0 = 0.4 [static]

$E_0$

Definition at line 44 of file test1.cpp.

const double END = 20.0 [static]

Duration of simulation (s).

Definition at line 59 of file test1.cpp.

const double TAU_0 = 2.0 [static]

$\tau_0$

Definition at line 39 of file test1.cpp.

const double V_0 = 0.01 [static]

$V_0$

Definition at line 49 of file test1.cpp.


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