The function simulates traces with forward Euler. It is the backend function
to simulate_traces
.
Arguments
- drift_dm_obj
a model of type drift_dm
- k
a single numeric, the number of traces to simulate
- one_cond
a single character string, specifying which condition shall be simulated
- add_x
a single logical, indicating if starting values shall be added or not. Sometimes, when visualizing the model, one does not want to have the starting values.
- sigma
a single numeric, to override the "sigma" in prms_solve
Value
An array of size k times nt + 1
. The array becomes an object of type
traces_dm
, which allows for easier printing with print.traces_dm.
Furthermore, each object has the additional attributes:
"t_vec" -> the time space from 0 to t_max
"mu_vals" -> the drift rate values by mu_fun
"b_vals" -> the boundary values by b_fun
"samp_x" -> the values of the starting points (which are always added to the traces in the array).