1 #ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__DISCRETE__BINOMIAL_HPP__
2 #define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__DISCRETE__BINOMIAL_HPP__
14 template <
bool propto,
17 typename boost::math::tools::promote_args<T_prob>::type
23 static const char*
function =
"stan::prob::binomial_log(%1%)";
28 using boost::math::tools::promote_args;
30 typename promote_args<T_prob>::type lp(0.0);
36 "Population size parameter",
40 "Probability parameter",
44 "Probability parameter",
56 + (N - n) *
log1m(theta);
60 template <
bool propto,
63 typename boost::math::tools::promote_args<T_prob>::type
66 const T_prob& theta) {
71 template <
typename T_prob,
74 typename boost::math::tools::promote_args<T_prob>::type
79 return binomial_log<false>(n,N,theta,Policy());
83 template <
typename T_prob>
85 typename boost::math::tools::promote_args<T_prob>::type
88 const T_prob& theta) {