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

◆ beta_neg_binomial_cdf()

template<typename T_n , typename T_r , typename T_alpha , typename T_beta >
return_type_t< T_r, T_alpha, T_beta > stan::math::beta_neg_binomial_cdf ( const T_n &  n,
const T_r &  r,
const T_alpha &  alpha,
const T_beta &  beta,
const double  precision = 1e-8,
const int  max_steps = 1e8 
)
inline

Returns the CDF of the Beta-Negative Binomial distribution with given number of successes, prior success, and prior failure parameters.

Given containers of matching sizes, returns the product of probabilities.

Template Parameters
T_ntype of failure parameter
T_rtype of number of successes parameter
T_alphatype of prior success parameter
T_betatype of prior failure parameter
Parameters
nfailure parameter
rNumber of successes parameter
alphaprior success parameter
betaprior failure parameter
precisionprecision for grad_F32, default \(10^{-8}\)
max_stepsmax iteration allowed for grad_F32, default \(10^{8}\)
Returns
probability or sum of probabilities
Exceptions
std::domain_errorif r, alpha, or beta fails to be positive
std::invalid_argumentif container sizes mismatch

Definition at line 43 of file beta_neg_binomial_cdf.hpp.