Class EventHandlingBwdSimulator
Defined in File backwardproblem.h
Class Documentation
-
class EventHandlingBwdSimulator
The EventHandlingBwdSimulator class runs a backward simulation and processes events and measurements general.
Public Functions
-
inline EventHandlingBwdSimulator(gsl::not_null<Model*> model, gsl::not_null<Solver const*> solver, gsl::not_null<BwdSimWorkspace*> ws)
EventHandlingBwdSimulator constructor.
- Parameters:
model – The model to simulate.
solver – The solver to use for the simulation.
ws – The workspace to use for the simulation.
-
void run(realtype t_start, realtype t_end, realtype it, std::vector<realtype> const &timepoints, std::vector<realtype> const *dJydx, std::vector<realtype> const *dJzdx)
Run the simulation.
It will run the backward simulation from the initial time of this period to the final timepoint of this period, handling events and data points as they occur.
Expects the model and the solver to be set up, and
wsto be initialized for this period.- Parameters:
t_start – The initial time of this period.
t_end – The final time of this period.
it – The index of the timepoint in
timepointsto start with.timepoints – The output timepoints or measurement timepoints of this period. This must contain at least the final timepoint of this period.
dJydx – State-derivative of data likelihood. Must be non-null if there are any data points in this period.
dJzdx – State-derivative of event likelihood. Must be non-null if the model has any event-observables.
-
inline EventHandlingBwdSimulator(gsl::not_null<Model*> model, gsl::not_null<Solver const*> solver, gsl::not_null<BwdSimWorkspace*> ws)