12 double get_values(
double x,
double y,
int print_switch);
24 if (
value(tau)-1.0<0.0)
26 cerr <<
"tau <=1 in log_negbinomial_density " <<
endl;
49 static double cof[6]={76.18009173,-86.50532033,24.01409822,
50 -1.231739516,0.120858003e-2,-0.536382e-5};
54 tmp -= (x+0.5)*
log(tmp);
61 return -tmp+
log(2.50662827465*ser);
84 for (i=1;i<=
ITMAX;i++) {
97 cerr <<
"a too large, ITMAX too small in gcf" <<
endl;
98 gammcf=
exp(-x+a*
log(x)-(gln))*h;
117 if (
value(x) <= 0.0) {
119 cerr <<
"x less than 0 in routine gser" <<
endl;
127 for (n=1;n<=
ITMAX;n++) {
132 gamser=sum*
exp(-x+a*
log(x)-(gln));
136 cerr <<
"a too large, ITMAX too small in routine gser" <<
endl;
148 cerr <<
"Invalid arguments in routine gammp" <<
endl;
150 gser(gamser,a,x,gln);
164 return 1.0-0.5*
exp(-x);
double gammln(double xx)
Log gamma function.
Description not yet available.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Description not yet available.
double cumd_gamma(double x, double a)
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
df1_one_variable atan(const df1_one_variable &x)
df1_two_variable fabs(const df1_two_variable &x)
Description not yet available.
double * get_u_y(void) const
double * get_u_x(void) const
prnstream & endl(prnstream &)
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
void gcf(double &gammcf, double a, double x, double &gln)
Incomplete gamma function.
void gser(double &gamser, double a, double x, double &gln)
Incomplete gamma function.
double get_values(double x, double y, int print_switch)
double cumd_exponential(double x)
Description not yet available.
Description not yet available.
double cumd_cauchy(const double &x)
Description not yet available.
dvector value(const df1_one_vector &v)
double log_negbinomial_density(double x, double mu, double tau)
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.