26 cerr <<
"tau <=1 in log_negbinomial_density " <<
endl;
29 double r=mu/(1.e-120+(tau-1.0));
47 cerr <<
"tau <=1 in negbinomial_density " <<
endl;
50 double r=mu/(1.e-120+(tau-1.0));
double gammln(double xx)
Log gamma function.
prnstream & endl(prnstream &)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
double log_density_poisson(double x, double mu)
Log Poisson density; constant objects.
double log_density_negbinomial(double x, double mu, double tau)
Log negative bionomial density; constant objects.
double density_negbinomial(double x, double mu, double tau)
Negative bionomial density; constant objects.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.