rGamma

Function to generate random observation from a gamma distribution.

References "Computer Generation of Statistical Distributions" by Richard Saucier

  1. T rGamma(T shape)
    T
    rGamma
    (
    T = double
    )
    ()
    if (
    isFloatingPoint!T
    )
  2. T rGamma(ref UniformRNG rng, T shape)

Examples

auto x = rGamma(2.0) * 5;

Meta