24 if (
value(tau)-1.0<0.0)
26 cerr <<
"tau <=1 in log_negbinomial_density " <<
endl;
52 if (
value(tau)-1.0<=0.0)
54 cerr <<
"tau <=1 in log_negbinomial_density " <<
endl;
Base class for dvariable.
dvariable negbinomial_density(double x, const prevariable &mu, const prevariable &tau)
Negative bionomial density; variable objects.
double gammln(double xx)
Log gamma function.
prnstream & endl(prnstream &)
void RETURN_ARRAYS_INCREMENT()
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.
static _THREAD gradient_structure * _instance
void RETURN_ARRAYS_DECREMENT()
double log_density_poisson(double x, double mu)
Log Poisson density; constant objects.
dvector value(const df1_one_vector &v)
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.
double log_negbinomial_density(double x, double mu, double tau)
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.