GammaSPDF

Gamma PDF

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

Constructors

this
this(T shape, T scale)

Members

Functions

opCall
T opCall(T x)

Examples

1 auto pdf = GammaSPDF!double(3, 2);
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