19 cerr<<
"k is <=0.0 in dnbinom()";
47 cerr<<
"k is <=0.0 in dnbinom()";
74 cerr<<
"k is <=0.0 in dnbinom()";
83 for(i = imin; i<=imax; i++)
112 for(i = imin; i<=imax; i++)
116 cerr<<
"k("<<i<<
") is <=0.0 in dnbinom()";
141 cerr<<
"k is <=0.0 in dnbinom()";
150 for(i = imin; i<=imax; i++)
178 for(i = imin; i<=imax; i++)
182 cerr<<
"k("<<i<<
") is <=0.0 in dnbinom()";
Base class for dvariable.
Description not yet available.
double gammln(double xx)
Log gamma function.
void RETURN_ARRAYS_DECREMENT(void)
Decrements gradient_structure::RETURN_ARRAYS_PTR.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
Description not yet available.
Description not yet available.
int indexmax() const
Get maximum valid index.
dvariable dnbinom(const double &x, const prevariable &mu, const prevariable &k)
negative log likelihood of negative binomial with mean=mu and variance = mu + mu^2 /k ...
Description not yet available.
void RETURN_ARRAYS_INCREMENT(void)
Increments gradient_structure::RETURN_ARRAYS_PTR.
dvector value(const df1_one_vector &v)
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.