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:
objectMixin adding affine and binary arithmetic operators to distributions.
- __add__(other)[source]
Return
self + otherfor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)
- __radd__(other)[source]
Return
other + selffor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)
- __sub__(other)[source]
Return
self - otherfor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)
- __rsub__(other)[source]
Return
other - selffor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)
- __mul__(other)[source]
Return
self * otherfor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)
- __rmul__(other)[source]
Return
other * selffor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)
- __truediv__(other)[source]
Return
self / otherfor scalar or distribution operands.- Return type:
Distribution | NotImplementedType
- Parameters:
other (object)