Class to generate random observations from a proper (chi > 0, psi > 0) generalized inverse Gaussian distribution. The algorithm is based on that given by Dagpunar (1989).
References: Original R source code.
Constructor
import std.algorithm : map; import std.range; auto rng = ProperGeneralizedInverseGaussianSRNG!double(rndGen, -2, 5.0, 2); auto sample = rng.map!(x => x + 4).take(9).array;
See Implementation
Class to generate random observations from a proper (chi > 0, psi > 0) generalized inverse Gaussian distribution. The algorithm is based on that given by Dagpunar (1989).
References: Original R source code.