GeneralizedGammaSRNG

Class to generate random observations from a generalized gamma distribution.

struct GeneralizedGammaSRNG (
T
UniformRNG = Random
) if (
isFloatingPoint!T
) {}

Constructors

this
this(UniformRNG rng, T shape, T power, T scale)

Constructor

Members

Functions

front
T front()

Manifest constants

empty
enum empty;

Static functions

popFront
void popFront()

Examples

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

Meta