| new_drift_dm | R Documentation |
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
)
flex_prms_obj |
a flex_prms object. |
sigma |
the diffusion noise ( |
t_max |
the maximum trial duration ( |
dt |
the temporal step size ( |
dx |
the evidence step size ( |
solver |
a string identifying the solver (e.g., |
comp_funs |
a list of component functions. |
cost_function |
a string, defining how to compute the fit cost. |
subclass |
a string with model info label set for the child class. |
b_coding |
an optional list with boundary coding
(e.g., |
obs_data |
an optional |
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()).
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().
drift_dm(), validate_drift_dm(),
obs_data(), drift_dm_default_b_coding(),
prms_solve().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.