![]() |
EpiNow2 Stan Functions
|
Utility functions and parameter handlers. More...

Subgroups | |
| Convolution Functions | |
| Functions for convolving time series. | |
| Parameter Handlers | |
| Functions for parameter management. | |
| Delay Handlers | |
| Functions for delay distribution handling. | |
| PMF Handlers | |
| Functions for probability mass function handling. | |
Functions | |
| int | neg_binomial_2_safe_rng (real mu, real phi) |
Utility functions and parameter handlers.
This group contains utility functions and parameter handlers from convolve.stan, params.stan, delays.stan, and pmfs.stan.
| int neg_binomial_2_safe_rng | ( | real | mu, |
| real | phi ) |
Custom safe version of the negative binomial sampler
This function generates random samples of the negative binomial distribution whilst avoiding numerical overflows. In particular:
| mu | Real value for mean mu. |
| phi | Real value for phi. |
Definition at line 231 of file observation_model.stan.
Referenced by report_rng().
