bellini.distributions

High-level representations of random variables which can be compiled into backend-specific code

Functions

gen_lognorm(loc, scale)

Generate a LogNormal that is centered at loc loc with scale scale

Classes

ComposedDistribution(distributions, op)

A composed distribution made of two distributions.

Distribution([observed, name])

Base class for distributions.

LogNormal(loc, scale, **kwargs)

LogNormal distribution.

Normal(loc, scale, **kwargs)

Normal distribution.

SimpleDistribution(*args, **kwargs)

Base class for all distributions that can be directly sampled from in any Bellini backend

TransformedDistribution(args, op, **kwargs)

A transformed distribution from one base distribution.

TruncatedNormal(low, loc, scale, **kwargs)

Truncated Normal distribution.

Uniform(low, high, **kwargs)

Uniform distribution.

UnitChangedDistribution(distribution, new_units)

A distribution whose units have been changed.