GeneralizedGammaSPDF

Generalized gamma PDF

struct GeneralizedGammaSPDF (
T
) if (
isFloatingPoint!T
) {}

Constructors

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

Members

Functions

opCall
T opCall(T x)

Examples

1 auto pdf = GeneralizedGammaSPDF!double(3, 2, 0.5);
2 auto x = pdf(0.1);
3 assert(x.isNormal);
4 
5 import scid.calculus : integrate;
6 auto result = pdf.integrate(-double.infinity, double.infinity);
7 assert(fabs(result.value - 1) < result.error);

Meta