distributions (pmrf.distributions)

Probability distribution classes and factories.

Can be used for random parameters in pmrf.parameters.

Re-exports from the distreqx library, as well as additional utilities.

Classes

AbstractDistribution()

Base class for all distreqx distributions.

Normal(loc, scale)

Normal distribution with location loc and scale parameters.

Uniform(low, high)

Uniform distribution with low and high parameters.

Gamma(concentration, rate)

Gamma distribution with parameters concentration and rate.

Functions

CenteredUniform(center, half_width)

Create a Uniform distribution defined by center and width.

RelativeNormal(mean, pct_std)

Create a Normal distribution defined by relative standard deviation.

RelativeTruncatedNormal(mean, pct_std[, ...])

Create a symmetric Truncated Normal distribution defined by relative standard deviation and truncated at a specified number of standard deviations from the mean.

truncate(dist, new_lower, new_upper)

Attempts to return a truncated version of the distribution.