|
ADMB Documentation
-a65f1c97
|
Functions | |
| double | factln (double n) |
Log-factorial . More... | |
| dvector | factln (const dvector &r) |
| Log-factorial of an array. More... | |
| double | gammln (double xx) |
| Log gamma function. More... | |
| dvector | gammln (const dvector &v) |
| Log-Gamma of an array. More... | |
| double | log_comb (double n, double k) |
| Log of the binomial coefficent; i.e log of 'n choose k'. More... | |
| dvector | log_comb (const dvector &n, const dvector &r) |
| Log-binomial of two arrays. More... | |
| 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(), lgamma(), lnbeta(), log_density_negbinomial(), log_density_poisson(), log_gamma_density(), log_negbinomial_density(), negbinomial_density(), nllBeta(), nllDirichlet(), nllGamma(), nllInverseGamma(), nllMultiNomial(), nllNegativeBinomial(), nllPoisson(), pbeta(), 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 Wed Sep 7 2022 00:01:32 for ADMB Documentation by 1.8.5
|