pyuncertainnumber.pba.mixins

Classes

NominalValueMixin

_PboxOpsMixin

Mixin for classes that want to reuse Pbox's arithmetic by

Module Contents

class pyuncertainnumber.pba.mixins.NominalValueMixin
property nominal_value
abstractmethod _compute_nominal_value()
class pyuncertainnumber.pba.mixins._PboxOpsMixin

Mixin for classes that want to reuse Pbox’s arithmetic by converting themselves (and the other operand) into Pbox first. Requires a _to_pbox(self) -> Pbox method on the subclass.

_BIN_OPS = ['__add__', '__sub__', '__mul__', '__truediv__', '__floordiv__', '__mod__', '__pow__',...
_REFL
_UNARY_OPS = ['__neg__', '__pos__', '__abs__', '__invert__']
static _coerce_to_pbox(x)
classmethod __init_subclass__(**kwargs)
__getattr__(name)