1 #ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__DISCRETE__BINOMIAL_HPP__
2 #define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__DISCRETE__BINOMIAL_HPP__
16 template <
bool propto,
21 typename return_type<T_prob>::type
27 static const char*
function =
"stan::prob::binomial_log(%1%)";
48 "Population size parameter",
52 "Probability parameter",
56 "Probability parameter",
61 "Successes variable",
"Population size parameter",
"Probability parameter",
81 for (
size_t i = 0; i < size; i++) {
86 + (N_vec[i] - n_vec[i]) *
log1m(theta_vec[i]);
91 template <
bool propto,
99 const T_prob& theta) {
104 template <
typename T_n,
114 return binomial_log<false>(n,N,theta,Policy());
118 template <
typename T_n,
125 const T_prob& theta) {