Sample from a gamma distribution. There are two parameterisations here, one in terms of rate, and one in terms of scale.
Source:R/random.R
monty_random_gamma.Rd
Sample from gamma distribution
Usage
monty_random_gamma_scale(shape, scale, state)
monty_random_n_gamma_scale(n_samples, shape, scale, state)
monty_random_gamma_rate(shape, rate, state)
monty_random_n_gamma_rate(n_samples, shape, rate, state)
Arguments
- shape
Shape
- scale
Scale '
- state
The random number state, from monty_rng_create
- n_samples
The number of samples to take, per stream. When using the multiple-sample interface, all other parameters are held constant (per stream).
- rate
Rate