randg
, which is redefined by
RcppOctave
to call the R base function
rgamma
. This enables to exactly
reproduce stochastic computations in R and Octave,
without changing the original Octave/Matlab code. See
o_runif
for more details.o_rgamma(n, p = n, shape = 1, scale = 1)
n
) [Generated from
Octave-
# Draw random gamma values (in matrix form) set.seed(123) o_rgamma(2) o_rgamma(2, 5)
# Draw random gamma values with shape and scale parameters o_rgamma(1, 5, shape=2) o_rgamma(1, 10, scale=0.5)