Stan Math Library  2.14.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 
4 #include <boost/math/special_functions/beta.hpp>
6 
7 namespace stan {
8  namespace math {
9 
23  inline double ibeta(double a,
24  double b,
25  double x) {
26  check_not_nan("ibeta", "a", a);
27  check_not_nan("ibeta", "b", b);
28  check_not_nan("ibeta", "x", x);
29  return boost::math::ibeta(a, b, x);
30  }
31 
32  }
33 }
34 #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:23
var ibeta(const var &a, const var &b, const var &x)
The normalized incomplete beta function of a, b, and x.
Definition: ibeta.hpp:224

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