Inheritance diagram for BOLDCalculator:

may be calculated from the
and
state variables of a balloon model according to the formula given in Buxton et al. (1998):
where
,
and
are constants.
FlowBalloonModel bm; // or NeuralBalloonModel bm; BOLDCalculator bc(&bm);
The balloon model may then be simulated as normal and the BOLD signal calculated from it at any time by calling calculate(). This would usually be done after each step of the balloon model:
indii::ml::ode::AdaptiveRungeKutta solver(&bm, bm.suggestInitialState()); double end = 60.0; double t = 0.0; while (t < end) { t = solver.step(end); std::cout << t << '=' << bc.calculate(solver.getState()) << std::endl; }
The BalloonModel object itself may be used as normal, the BOLDCalculator does not modify it in any way, and simply requires it for some parameters.
Definition at line 62 of file BOLDCalculator.hpp.
Public Types | |
| enum | BiophysicalParameter { K_1, K_2, K_3 } |
| Biophysical parameters. More... | |
Public Member Functions | |
| BOLDCalculator (const BalloonModel *m) | |
| Create new BOLD calculator with default biophysical parameters, coupled with the given balloon model. | |
| virtual | ~BOLDCalculator () |
| Destructor. | |
| double | calculate (const indii::ml::aux::vector &y) |
| Calculate BOLD signal from coupled balloon model and given state. | |
| enum BiophysicalParameter |
Biophysical parameters.
These are initialised according to the values in BOLDCalculatorDefaults, but may be overridden using setParameter().
Definition at line 69 of file BOLDCalculator.hpp.
| BOLDCalculator | ( | const BalloonModel * | m | ) |
Create new BOLD calculator with default biophysical parameters, coupled with the given balloon model.
| m | FlowBalloonModel or NeuralBalloonModel from which to calculate BOLD signal. |
Definition at line 11 of file BOLDCalculator.cpp.
| ~BOLDCalculator | ( | ) | [virtual] |
| double calculate | ( | const indii::ml::aux::vector & | y | ) |
Calculate BOLD signal from coupled balloon model and given state.
| y | State of the balloon model, usually provided by the ordinary differential equation solver being used on the balloon model, such as indii::ml::ode::AdaptiveRungeKutta. |
1.5.2