ADMB Documentation
-a65f1c97
|
#include <admodel.h>
Go to the source code of this file.
Functions | |
double | rgamma (double alpha, random_number_generator &rng) |
Copyright (c) 2016 ADMB Foundation. More... | |
double rgamma | ( | double | alpha, |
random_number_generator & | rng | ||
) |
Copyright (c) 2016 ADMB Foundation.
Compute random gamma number using Marsaglia and Tsang’s method.
alpha | Shape parameter |
rng | Random number genertor |
Function code modified from GNU Scientific Library http://git.savannah.gnu.org/cgit/gsl.git/tree/randist/gamma.c
Definition at line 17 of file gsl_ran_gamma.cpp.
Referenced by rbeta(), rdirichlet(), and rgamma().
Generated on Wed Sep 7 2022 00:01:31 for ADMB Documentation by 1.8.5 |