Simulate gamma random variates
# S4 method for numeric,dual,dual
rgamma0(n, shape, scale, method = "inv_tf")# S4 method for numeric,dual,numeric
rgamma0(n, shape, scale, method = "inv_tf")
# S4 method for numeric,numeric,dual
rgamma0(n, shape, scale, method = "inv_tf")
Positive integer; the number of samples.
A dual number or a scalar; the shape of the gamma distribution.
A dual number or a scalar; the scale of the gamma distribution.
'base' or 'inv_tf'; 'base' refers to `stats::rgamma` while 'inv_tf' refers to inverse transform.