rInverseGaussian

Function to generate random observation from a inverse Gaussian distribution.

References: Michael, John R.; Schucany, William R.; Haas, Roy W. (May 1976). "Generating Random Variates Using Transformations with Multiple Roots".

  1. T rInverseGaussian(T lambda, T mu)
    T
    rInverseGaussian
    (
    T = double
    )
    (,
    T mu
    )
    if (
    isFloatingPoint!T
    )
  2. T rInverseGaussian(UniformRNG rng, T lambda, T mu)

Examples

auto x = rInverseGaussian(2.0, 3.0) * 5;

Meta