Skip to main content

interp_rgamma

Function interp_rgamma 

Source
fn interp_rgamma(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Random gamma deviates.

Generates n random values from a gamma distribution.

@param n number of observations @param shape shape parameter (default 1) @param rate rate parameter (default 1); scale = 1/rate @return numeric vector of length n