This function assembles all components to create a drift_dm object.
new_drift_dm(
flex_prms_obj,
sigma,
t_max,
dt,
dx,
solver,
comp_funs,
cost_function,
subclass,
b_coding = NULL,
obs_data = NULL
)A list with elements flex_prms_obj, prms_solve, solver, comp_funs,
and cost_function. The object has class attributes
c(subclass, "drift_dm") and an attribute "b_coding" containing the
boundary coding. If obs_data is not NULL, the observed data are attached
via obs_data().
a flex_prms object.
the diffusion noise (sigma).
the maximum trial duration (t_max).
the temporal step size (dt).
the evidence step size (dx).
a string identifying the solver (e.g., "kfe").
a list of component functions.
a string, defining how to compute the fit cost.
a string with model info label set for the child class.
an optional list with boundary coding
(e.g., drift_dm_default_b_coding()).
an optional data.frame with observed data.
We do not perform input checks here; we just assemble the object. Any
pre-wrangling is done in drift_dm(). Checks are performed by
validate_drift_dm(), which is called indirectly via the
setters (e.g., prms_solve() and obs_data()).
drift_dm(), validate_drift_dm(),
obs_data(), drift_dm_default_b_coding(),
prms_solve().