Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ wiener5_log_sum_exp()

template<bool Density, GradientCalc GradW, typename T_y , typename T_a , typename T_w , typename T_nsmall , typename T_nlarge >
auto stan::math::internal::wiener5_log_sum_exp ( T_y &&  y,
T_a &&  a,
T_w &&  w_value,
T_nsmall &&  n_terms_small_t,
T_nlarge &&  n_terms_large_t 
)
inlinenoexcept

Calculate the 'result' term and its sign for a wiener5 density or gradient.

Template Parameters
DensityWhether the calculation is for the density
GradWWhether the calculation is for gradient w.r.t. 'w'
T_ytype of scalar variable
T_atype of boundary separation
T_wtype of relative starting point
T_nsmalltype of term number_small_terms
T_nlargetype of term number_large_terms
Parameters
yA scalar variable; the reaction time in seconds
aThe boundary separation
w_valueThe relative starting point
n_terms_small_tThe n_terms_small_t term
n_terms_large_tThe n_terms_large_t term
Returns
'result' sum and its sign

Definition at line 168 of file wiener5_lpdf.hpp.