41 cerr<<
"x is <=0 or >=1.0 in "
42 "dbeta( const dvariable& x, const double& shape1, const double& shape2 )\n";
46 if( shape1<=0 || shape2 <=0 )
48 cerr<<
"shape1 or shape2 is <= 0 in "
49 "dbeta( const dvariable& x, const double& shape1, const double& shape2 )\n";
62 cerr<<
"x is <=0 or >=1.0 in "
63 "dbeta( const dvariable& x, const double& shape1, const double& shape2 )\n";
67 if( shape1<=0 || shape2 <=0 )
69 cerr<<
"shape1 or shape2 is <= 0 in "
70 "dbeta( const dvariable& x, const double& shape1, const double& shape2 )\n";
83 cerr<<
"x is <=0 or >=1.0 in "
84 "dbeta( const dvariable& x, const double& shape1, const double& shape2 )\n";
88 if( shape1<=0 || shape2 <=0 )
90 cerr<<
"shape1 or shape2 is <= 0 in "
91 "dbeta( const dvariable& x, const double& shape1, const double& shape2 )\n";
Base class for dvariable.
double gammln(double xx)
Log gamma function.
Library of statistic functions.
dvariable dbeta(const dvariable &x, const double &shape1, const double &shape2)
Fundamental data type for reverse mode automatic differentiation.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.