get_default_functions: Get default/fall back component functions

View source: R/core_dm.R

get_default_functionsR Documentation

Get default/fall back component functions

Description

If arguments are provided that are not NULL, the respective argument is simply returned. If it is NULL, then a default/fall back component function is returned for the respective component. This function is called to fill up non-specified component functions when calling drift_dm().

Usage

get_default_functions(
  mu_fun = NULL,
  mu_int_fun = NULL,
  x_fun = NULL,
  b_fun = NULL,
  dt_b_fun = NULL,
  nt_fun = NULL
)

Arguments

mu_fun

drift rate function

mu_int_fun

integral drift rate function

x_fun

starting point function

b_fun

boundary function

dt_b_fun

derivative of boundary function

nt_fun

non-decision time function

Details

defaults...

  • mu_fun -> constant drift rate of 3 (i.e., vector of 0s)

  • mu_int_fun -> constant drift rate of 3 (i.e., vector of 3 times t_vec)

  • x_fun -> dirac delta on zero x_dirac_0()

  • b_fun -> constant boundary of 0.5 (i.e., vector of 0.5s)

  • dt_b_fun -> derivate of constant boundary (i.e., vector of 0s). dt_b_constant()

  • nt_fun -> constant non-decision time of 0.3 (i.e., vector for dirac delta on 0.5).

Value

a list of mu_fun, mu_int_fun, x_fun, b_fun, dt_b_fun, and nt_fun, with either the supplied component functions or the added/filled in default component functions (if an argument is NULL).


dRiftDM documentation built on April 3, 2025, 7:48 p.m.