Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ibeta.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__FUNCTIONS__IBETA_HPP
2 #define STAN__MATH__FUNCTIONS__IBETA_HPP
3 
4 #include <boost/math/special_functions/beta.hpp>
6 
7 namespace stan {
8  namespace math {
9 
23  inline double ibeta(const double a,
24  const double b,
25  const double x) {
26  check_not_nan("ibeta(%1%)", a, "a", static_cast<double*>(0));
27  check_not_nan("ibeta(%1%)", b, "b", static_cast<double*>(0));
28  check_not_nan("ibeta(%1%)", x, "x", static_cast<double*>(0));
29  return boost::math::ibeta(a, b, x);
30  }
31 
32  }
33 }
34 
35 #endif
double ibeta(const double a, const double b, const double x)
The normalized incomplete beta function of a, b, and x.
Definition: ibeta.hpp:23
bool check_not_nan(const char *function, const T_y &y, const char *name, T_result *result)
Checks if the variable y is nan.

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