Return the log 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_y | type of scalar, either int or std::vector<int> |
| T_lower | type of lower bound, either int or std::vector<int> |
| T_upper | type of upper bound, either int or std::vector<int> |
- Parameters
-
| y | integer random variable |
| lower | integer lower bound |
| upper | integer upper bound |
- Returns
- The log CDF evaluated at the specified arguments. If containers are supplied, returns the sum of the log CDFs.
- Exceptions
-
| std::domain_error | if upper is smaller than lower. |
| std::invalid_argument | if non-scalar arguments are of different sizes. |
Definition at line 38 of file discrete_range_lcdf.hpp.