particles.distributions.TruncNormal

class TruncNormal(mu=0.0, sigma=1.0, a=0.0, b=1.0)[source]

Normal(mu, sigma^2) truncated to [a, b] interval.

__init__(mu=0.0, sigma=1.0, a=0.0, b=1.0)[source]

Methods

__init__([mu, sigma, a, b])

logpdf(x)

pdf(x)

posterior(x[, s])

Modelp is X_1,...,X_n ~ N(theta, s^2), theta~self, s fixed

ppf(u)

rvs([size])

shape(size)

Attributes

dim