Stan Math Library  2.20.0
reverse mode automatic differentiation
ibeta.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_IBETA_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_IBETA_HPP
3 
5 #include <boost/math/special_functions/beta.hpp>
7 
8 namespace stan {
9 namespace math {
10 
24 inline double ibeta(double a, double b, double x) {
25  check_not_nan("ibeta", "a", a);
26  check_not_nan("ibeta", "b", b);
27  check_not_nan("ibeta", "x", x);
28  return boost::math::ibeta(a, b, x);
29 }
30 
31 } // namespace math
32 } // namespace stan
33 #endif
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
double ibeta(double a, double b, double x)
The normalized incomplete beta function of a, b, and x.
Definition: ibeta.hpp:24
var ibeta(const var &a, const var &b, const var &x)
The normalized incomplete beta function of a, b, and x.
Definition: ibeta.hpp:208

     [ Stan Home Page ] © 2011–2018, Stan Development Team.