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

◆ bernoulli_lccdf() [1/2]

template<typename T_n_cl , typename T_prob_cl , require_all_prim_or_rev_kernel_expression_t< T_n_cl, T_prob_cl > * = nullptr, require_any_not_stan_scalar_t< T_n_cl, T_prob_cl > * = nullptr>
return_type_t< T_prob_cl > stan::math::bernoulli_lccdf ( const T_n_cl &  n,
const T_prob_cl &  theta 
)

Returns the log CCDF of the Bernoulli distribution.

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

Template Parameters
T_n_cltype of integer parameter
T_prob_cltype of chance of success parameter
Parameters
ninteger parameter
thetalogit-transformed chance 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 31 of file bernoulli_lccdf.hpp.