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

◆ beta_binomial_lcdf()

template<typename T_n , typename T_N , typename T_size1 , typename T_size2 >
return_type_t< T_size1, T_size2 > stan::math::beta_binomial_lcdf ( const T_n &  n,
const T_N &  N,
const T_size1 &  alpha,
const T_size2 &  beta 
)

Returns the log CDF of the Beta-Binomial distribution with given population size, prior success, and prior failure parameters.

Given containers of matching sizes, returns the log sum of probabilities.

Template Parameters
T_ntype of success parameter
T_Ntype of population size parameter
T_size1type of prior success parameter
T_size2type of prior failure parameter
Parameters
nsuccess parameter
Npopulation size parameter
alphaprior success parameter
betaprior failure parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif N, alpha, or beta fails to be positive
std::invalid_argumentif container sizes mismatch

Definition at line 44 of file beta_binomial_lcdf.hpp.