ShiftedGamma — The gamma distribution

Usage

ShiftedGamma(a: Double, b: Double, shift: Double) → Distribution<Double>

Arguments

a:

The shape parameter

b:

The scale parameter

shift:

The shift parameter

Description

mean = a * b
variance = a*b^2

Examples

~ShiftedGamma(1.0, mu, 0)                   # An exponential
~ShiftedGamma(a, b, 1.5)                    # A Gamma shifted right by 1.5
~IID(10, ShiftedGamma(0.5, 2, 1.5))         # 10 samples
quantile(ShiftedGamma(0.5, 2, 0), 0.95)
density(ShiftedGamma(0.5, 2), 0.95)

See also