rInverseGamma

Function to generate random observation from a inverse-gamma distribution.

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

Examples

auto x = rInverseGamma(2.0) * 5;

Meta