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

◆ binomial_lccdf()

template<typename T_n , typename T_N , typename T_prob >
return_type_t< T_prob > stan::math::binomial_lccdf ( const T_n &  n,
const T_N &  N,
const T_prob &  theta 
)

Returns the log CCDF for the binomial distribution evaluated at the specified success, population size, and chance of success.

If given containers of matching lengths, returns the log sum of probabilities.

Template Parameters
T_ntype of successes parameter
T_Ntype of population size parameter
thetatype of chance of success parameter
Parameters
nsuccesses parameter
Npopulation size parameter
thetachance of success parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif N is negative
std::domain_errorif theta is not a valid probability
std::invalid_argumentif container sizes mismatch

Definition at line 38 of file binomial_lccdf.hpp.