Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
prob
hypergeometric_log.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_PROB_HYPERGEOMETRIC_LOG_HPP
2
#define STAN_MATH_PRIM_SCAL_PROB_HYPERGEOMETRIC_LOG_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/scal/prob/hypergeometric_lpmf.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
13
template
<
bool
propto,
typename
T_n,
typename
T_N,
typename
T_a,
typename
T_b>
14
double
hypergeometric_log
(
const
T_n& n,
const
T_N& N,
const
T_a& a,
15
const
T_b& b) {
16
return
hypergeometric_lpmf<propto, T_n, T_N, T_a, T_b>(n, N, a, b);
17
}
18
22
template
<
typename
T_n,
typename
T_N,
typename
T_a,
typename
T_b>
23
inline
double
hypergeometric_log
(
const
T_n& n,
const
T_N& N,
const
T_a& a,
24
const
T_b& b) {
25
return
hypergeometric_lpmf<T_n, T_N, T_a, T_b>(n, N, a, b);
26
}
27
28
}
// namespace math
29
}
// namespace stan
30
#endif
hypergeometric_lpmf.hpp
stan::math::hypergeometric_log
double hypergeometric_log(const T_n &n, const T_N &N, const T_a &a, const T_b &b)
Definition:
hypergeometric_log.hpp:14
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
[
Stan Home Page
]
© 2011–2018, Stan Development Team.