bellini.distributions.TruncatedNormal

class bellini.distributions.TruncatedNormal(low, loc, scale, **kwargs)[source]

Bases: bellini.distributions.SimpleDistribution

Truncated Normal distribution.

__init__(low, loc, scale, **kwargs)[source]
Parameters
  • low (Distribution or Quantity) – Where to truncate the left half of the Normal (see numpyro.distributions.TruncatedNormal)

  • loc (Distribution or Quantity) – loc parameter of TruncatedNormal (see numpyro.distributions.TruncatedNormal)

  • scale (Distribution or Quantity) – scale parameter of TruncatedNormal (see numpyro.distributions.TruncatedNormal)

Methods

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

Parameters
  • low (Distribution or Quantity) -- Where to truncate the left half of the Normal

to_units(new_units[, force])

Return self converted to units new_units

unitless()

Return a unitless version of self

Attributes

dimensionality

The Distribution's dimensionality (e.g.

g

A networkx graph describing the computation graph used to create this Distribution

internal_units

The units associated with internal computations in Bellini for this Distribution

magnitude

A quantity (array-like or scalar) with the same shape as expected samples from this Distribution

name

A string representing the name of self

shape

The shape of samples from this Distribution

units

The units of this Distribution (e.g.

property dimensionality

The Distribution’s dimensionality (e.g. ‘length’ for meter)

property g

A networkx graph describing the computation graph used to create this Distribution

property internal_units

The units associated with internal computations in Bellini for this Distribution

property magnitude

A quantity (array-like or scalar) with the same shape as expected samples from this Distribution

property name

A string representing the name of self

property shape

The shape of samples from this Distribution

to_units(new_units, force=False)[source]

Return self converted to units new_units

unitless()[source]

Return a unitless version of self

property units

The units of this Distribution (e.g. molar)