HyperbolicAsymmetricTRNG

Class to generate random observations from a hyperbolic asymmetric t-distribution using normal variance-mean mixture of inverse-gamma distribution.

final
class HyperbolicAsymmetricTRNG : NormalVarianceMeanMixtureRNG!T(
T
UniformRNG = Random
) if (
isFloatingPoint!T
) {}

Constructors

this
this(ref UniformRNG rng, T shape, T scale, T beta)

Constructor

Examples

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

Meta