Stan Math Library
2.15.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/scal/meta/return_type.hpp
>
5
#include <
stan/math/prim/scal/prob/hypergeometric_lpmf.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
13
template
<
bool
propto,
14
typename
T_n,
typename
T_N,
15
typename
T_a,
typename
T_b>
16
double
17
hypergeometric_log
(
const
T_n& n,
const
T_N& N,
18
const
T_a& a,
const
T_b& b) {
19
return
hypergeometric_lpmf<propto, T_n, T_N, T_a, T_b>(n, N, a, b);
20
}
21
25
template
<
typename
T_n,
26
typename
T_N,
27
typename
T_a,
28
typename
T_b>
29
inline
30
double
31
hypergeometric_log
(
const
T_n& n,
32
const
T_N& N,
33
const
T_a& a,
34
const
T_b& b) {
35
return
hypergeometric_lpmf<T_n, T_N, T_a, T_b>(n, N, a, b);
36
}
37
38
}
39
}
40
#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:17
stan
Definition:
log_sum_exp.hpp:8
return_type.hpp
[
Stan Home Page
]
© 2011–2016, Stan Development Team.