ADMB Documentation
11.5.3197
|
Functions | |
double | factln (double n) |
Log-factorial . | |
dvector | factln (const dvector &r) |
Log-factorial of an array. | |
double | gammln (double xx) |
Log gamma function. | |
dvector | gammln (const dvector &v) |
Log-Gamma of an array. | |
double | log_comb (double n, double k) |
Log of the binomial coefficent; i.e log of 'n choose k'. | |
dvector | log_comb (const dvector &n, const dvector &r) |
Log-binomial of two arrays. |
double factln | ( | double | n | ) |
Log-factorial .
n | a number |
Definition at line 38 of file combc.cpp.
Referenced by log_comb().
double gammln | ( | double | xx | ) |
Log gamma function.
xx |
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 6
Definition at line 52 of file combc.cpp.
Referenced by beta(), betai(), dbeta(), density_negbinomial(), dgamma(), dinvgamma(), dmultinom(), dnbinom(), dpois(), dstudent_t(), dzinbinom(), factln(), gamma_density(), gammln(), gcf(), get_initial_u(), gser(), inv_cumd_gamma(), lnbeta(), log_density_negbinomial(), log_density_poisson(), log_gamma_density(), log_negbinomial_density(), negbinomial_density(), nllBeta(), nllDirichlet(), nllGamma(), nllInverseGamma(), nllMultiNomial(), nllNegativeBinomial(), nllPoisson(), and randpoisson().
double log_comb | ( | double | n, |
double | k | ||
) |
Log of the binomial coefficent; i.e log of 'n choose k'.
n | a number |
k | a number |
Definition at line 27 of file combc.cpp.
Referenced by dbinom(), log_comb(), and nllBinomial().
Generated on Tue Mar 8 2016 19:51:38 for ADMB Documentation by 1.8.0 |