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

◆ binomial_cdf()

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

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

If given containers of matching lengths, returns the product 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
probability or product 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 36 of file binomial_cdf.hpp.