template<
GradientCalc GradSW, typename F , typename T_y , typename T_a , typename T_v , typename T_w , typename T_sv , typename T_sw , typename T_err , std::enable_if_t<!GradSW > * = nullptr>
auto stan::math::internal::conditionally_grad_sw |
( |
F && |
functor, |
|
|
T_y && |
y_diff, |
|
|
T_a && |
a, |
|
|
T_v && |
v, |
|
|
T_w && |
w, |
|
|
T_sv && |
sv, |
|
|
T_sw && |
sw, |
|
|
T_err && |
log_error |
|
) |
| |
|
inline |
Helper function for agnostically calling wiener5 functions (to be integrated over) or directly calling wiener7 functions, accounting for the different number of arguments.
Specialisation for wiener5 functions
- Template Parameters
-
GradSW | Whether the gradient of sw is computed |
F | Type of Gradient/density functor |
T_y | type of scalar variable |
T_a | type of boundary separation |
T_v | type of drift rate |
T_w | type of relative starting point |
T_sv | type of inter-trial variability in v |
T_sw | type of inter-trial variability in w |
T_err | type of log error tolerance |
- Parameters
-
functor | Gradient/density functor to apply |
y_diff | A scalar variable; the reaction time in seconds without non-decision time |
a | The boundary separation |
v | The drift rate |
w | The relative starting point |
sv | The inter-trial variability of the drift rate |
sw | The inter-trial variability of the relative starting point |
log_error | The log error tolerance |
- Returns
- Functor applied to arguments
Specialisation for wiener7 functions
- Template Parameters
-
GradSW | Whether the gradient of sw is computed |
F | Type of Gradient/density functor |
T_y | type of scalar variable |
T_a | type of boundary separation |
T_v | type of drift rate |
T_w | type of relative starting point |
T_sv | type of inter-trial variability in v |
T_sw | type of inter-trial variability in w |
T_err | type of log error tolerance |
- Parameters
-
functor | Gradient/density functor to apply |
y_diff | A scalar variable; the reaction time in seconds without non-decision time |
a | The boundary separation |
v | The drift rate |
w | The relative starting point |
sv | The inter-trial variability of the drift rate |
sw | The inter-trial variability of the relative starting point |
log_error | The log error tolerance |
- Returns
- Functor applied to arguments
Definition at line 77 of file wiener_full_lpdf.hpp.