GeneralizedInverseGaussianRNG

Class to generate random observations from a generalized inverse Gaussian distribution.

final
class GeneralizedInverseGaussianRNG : DistributionRNG!T(
T
UniformRNG = Random
) if (
isFloatingPoint!T
) {}

Constructors

this
this(UniformRNG rng, T lambda, T chi, T psi)

Constructor

Members

Functions

front
T front()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import std.algorithm : map;
import std.range;
auto rng = new GeneralizedInverseGaussianRNG!double(rndGen, -2, 5.0, 2);
auto sample = rng.map!(x => x + 4).take(9).array;

See Also

Meta