particles.distributions.Gamma

class Gamma(a=1.0, b=1.0)[source]

Gamma(a,b) distribution, scale=1/b.

__init__(a=1.0, b=1.0)[source]

Methods

__init__([a, b])

logpdf(x)

pdf(x)

posterior(x)

Modelp is X_1,...,X_n ~ N(0, 1/theta), theta ~ Gamma(a, b)

ppf(u)

rvs([size])

shape(size)

Attributes

dim