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

◆ discrete_range_cdf()

template<typename T_y , typename T_lower , typename T_upper >
double stan::math::discrete_range_cdf ( const T_y &  y,
const T_lower &  lower,
const T_upper &  upper 
)

Return the CDF of a discrete range distribution for the given y, lower and upper bounds (all integers).

y, lower and upper can each be a scalar or a one-dimensional container. Any container arguments must be the same size.

Template Parameters
T_ytype of scalar, either int or std::vector<int>
T_lowertype of lower bound, either int or std::vector<int>
T_uppertype of upper bound, either int or std::vector<int>
Parameters
yinteger random variable
lowerinteger lower bound
upperinteger upper bound
Returns
The CDF evaluated at the specified arguments. If containers are supplied, returns the product of the CDFs.
Exceptions
std::domain_errorif upper is smaller than lower.
std::invalid_argumentif non-scalar arguments are of different sizes.

Definition at line 38 of file discrete_range_cdf.hpp.