operators_mixin

Operator mixin for transformation-enabled distributions.

This mixin provides arithmetic operators implemented through transformation primitives.

class pysatl_core.transformations.operators_mixin.TransformationOperatorsMixin[source]

Bases: object

Mixin adding affine and binary arithmetic operators to distributions.

__add__(other)[source]

Return self + other for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__radd__(other)[source]

Return other + self for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__sub__(other)[source]

Return self - other for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__rsub__(other)[source]

Return other - self for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__mul__(other)[source]

Return self * other for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__rmul__(other)[source]

Return other * self for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__truediv__(other)[source]

Return self / other for scalar or distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__rtruediv__(other)[source]

Return other / self for distribution operands.

Return type:

Distribution | NotImplementedType

Parameters:

other (object)

__neg__()[source]

Return -self as an affine transformation.

Return type:

pysatl_core.distributions.distribution.Distribution