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

◆ bernoulli_lccdf() [2/2]

template<typename T_n , typename T_prob , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_n, T_prob > * = nullptr>
return_type_t< T_prob > stan::math::bernoulli_lccdf ( const T_n &  n,
const T_prob &  theta 
)

Returns the log CCDF of the Bernoulli distribution.

If containers are supplied, returns the log sum of the probabilities.

Template Parameters
T_ntype of integer parameter
T_probtype of chance of success parameter
Parameters
ninteger parameter
thetachance of success parameter
Returns
log probability or log sum of probabilities
Exceptions
std::domain_errorif theta is not a valid probability
std::invalid_argumentif container sizes mismatch.

Definition at line 32 of file bernoulli_lccdf.hpp.