Revision 1619 trunk/src/df1b2separable/df1b2negb.cpp
df1b2negb.cpp (revision 1619)  

11  11 
#define HOME_VERSION 
12  12 
#include "df1b2fun.h" 
13  13  
14 
/*/** Log negative bionomial density; random effects objects. 

15 
A local parameter r is used to make it robust. 

16 
\f$ r=\frac{\mu}{\tau1.0} \f$ 

17 
\ingroup PDF 

18 
\param x 

19 
\param mu 

20 
\param tau 

21 
\return Log of NegativeBinomial density. \f$ log(\Gamma(x+r))log(\Gamma(r))log(x!)+rlog(r)+xlog(\mu)(r+x)log(r+\mu) \f$ 

22 
*/ 

14 
/** 

15 
Log negative bionomial density; random effects objects. 

16 
A local parameter r is used to make it robust. 

17 
\f$ r=\frac{\mu}{\tau1.0} \f$ 

18 
\ingroup PDF 

19 
\param x 

20 
\param mu 

21 
\param tau 

22 
\return Log of NegativeBinomial density. \f$ log(\Gamma(x+r))log(\Gamma(r))log(x!)+rlog(r)+xlog(\mu)(r+x)log(r+\mu) \f$ 

23 
*/ 

23  24 
/* 
24  25 
df1b2variable log_negbinomial_density(double x,const df1b2variable& mu, 
25  26 
const df1b2variable& tau) 
Also available in: Unified diff